how to rename file linux terminal code example
Example 1: rename a file in linux
mv oldfile.txt newfile.txt
Example 2: bash rename file
mv oldname newname
Example 3: rename file linux
mv (option) filename1.ext filename2.ext
mv oldfile.txt newfile.txt
mv oldname newname
mv (option) filename1.ext filename2.ext