renaming files in linux by terminal code example Example 1: rename a file in linux mv oldfile.txt newfile.txt Example 2: unix rename file mv thirdfile file3