directory rename in linux code example
Example 1: rename folder command line linux
mv old-name new-name
Example 2: how to rename working directory in linux
$ mv <source_directory> <target_directory>
mv old-name new-name
$ mv <source_directory> <target_directory>