which command is used to rename a file in linux code example
Example 1: rename a file in linux
mv oldfile.txt newfile.txt
Example 2: rename file linux
mv (option) filename1.ext filename2.ext
mv oldfile.txt newfile.txt
mv (option) filename1.ext filename2.ext