how to go back to previous directory in 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 /" "cd" "cd ~" "cd .." "cd -"
Example 3: linux command to go to the previous directory
cd - #go to the previous directory
Example 4: ubuntu navigate to directory in windows
cd /mnt/e/username/folder1/folder2
Example 5: linux up one directory
use "cd .." ## To navigate up one directory level
Example 6: change direcotry ubuntu
cd directory_name