Q:

linux command to go to the previous directory

/* 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 -"
7
cd /mnt/e/username/folder1/folder2
0
cd -   #go to the previous directory
0
cd ..     #go to the parent directory
0

New to Communities?

Join the community