rename directory command line linux code example
Example 1: ubuntu rename folder
sudo mv oldName newName
Example 2: rename folder command line linux
mv old-name new-name
Example 3: how to rename the directory in terminal
mv [oldDirPath] [newDirPath]
Example 4: how to rename working directory in linux
$ mv <source_directory> <target_directory>