Replicating common unix commands in python for fun.