terminal how to change directory name code example
Example 1: how to rename the directory in terminal
mv [oldDirPath] [newDirPath]
Example 2: 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