rename dir linux code example
Example 1: rename a file in linux
mv oldfile.txt newfile.txt
Example 2: rename folder command line linux
mv old-name new-name
Example 3: how to rename working directory in linux
$ mv <source_directory> <target_directory>