cd back linux code example
Example 1: navigate to a directory linux
/* File & Directory Commands
To navigate into the root directory, use */ "cd /" /*
To navigate to your home directory, use */ "cd" /*or*/ "cd ~" /*
To navigate up one directory level, use*/ "cd .." /*
To navigate to the previous directory (or back), use */ "cd -"
Example 2: linux command to go to the parent directory
cd .. #go to the parent directory
Example 3: how to go back to the last directory in linux
/
* File & Directory Commands *
To navigate into the root directory, use */ "cd /" /*
To navigate to your home directory, use */ "cd" /*or*/ "cd ~" /*
To navigate up one directory level, use*/ "cd .." /*
To navigate to the previous directory (or back), use */ "cd -"
Example 4: linux command to go to the previous directory
cd - #go to the previous directory