go back a directory linux code example

Example 1: how to step back in the path in temrinal

cd ~ or cd -

Example 2: 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 3: go up directory terminal

how to move up in terminal

Example 4: change direcotry ubuntu

cd directory_name

Tags:

Misc Example