how to rename ubuntu directory code example
Example 1: ubuntu rename folder
sudo mv oldName newName
Example 2: rename command ubuntu
cd /home/user/docs/files
mv file1.txt file2.txt
sudo mv oldName newName
cd /home/user/docs/files
mv file1.txt file2.txt