rename file name ubuntu code example
Example 1: how to rename a file in ubuntu using terminal
mv oldnamefile1 newnamefile1
Example 2: rename command ubuntu
cd /home/user/docs/files
mv file1.txt file2.txt
mv oldnamefile1 newnamefile1
cd /home/user/docs/files
mv file1.txt file2.txt