command edit a file name linux code example
Example 1: how to rename a file in ubuntu using terminal
mv oldnamefile1 newnamefile1
Example 2: rename a file in linux
mv oldfile.txt newfile.txt
mv oldnamefile1 newnamefile1
mv oldfile.txt newfile.txt