unix tools replicated in java