terminal change folder name code example
Example 1: rename folder bash
mv /home/user/oldname /home/user/newname
Example 2: how to rename the directory in terminal
mv [oldDirPath] [newDirPath]
Example 3: how to rename working directory in linux
$ mv <source_directory> <target_directory>
Example 4: terminal change directory
// change directory in terminal
cd folder_name/subfolder_name
// go up one directory level
cd ..
// back to previous directory
cd -
// return to home directory
cd