how to change a directory name in terminal on mac code example Example: command line rename folder mac mv old-folder-name new-folder-name