rename in centos 7 code example
Example 1: linux change file name
mv oldfile.txt newfile.txt
Example 2: how to rename a file in terminal
mv "old location" "new location"
mv /home/user/my_static /home/user/static
mv "file1.ext" "file2.ext"
mv oldfile.txt newfile.txt
mv "old location" "new location"
mv /home/user/my_static /home/user/static
mv "file1.ext" "file2.ext"