osx rename file terminal code example Example: change file name in terminal mv oldfile.txt newfile.txt