go back to previous directory in centos code example
Example 1: linux command to go to the previous directory
cd - #go to the previous directory
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