Rewrite ls command.