how to rename file in terminal linux code example Example 1: linux change file name mv oldfile.txt newfile.txt Example 2: bash rename file mv oldname newname