rename dir terminal code example
Example 1: ubuntu rename folder
sudo mv oldName newName
Example 2: rename folder bash
mv /home/user/oldname /home/user/newname
Example 3: how to rename the directory in terminal
mv [oldDirPath] [newDirPath]
sudo mv oldName newName
mv /home/user/oldname /home/user/newname
mv [oldDirPath] [newDirPath]