Your Question: How Do I Back out of a Directory in Linux?
Contents 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 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 -”
How do I go back a directory in Terminal?
(two dots). The .. means “the parent directory” of your current directory, so you can use cd .. to go back (or up) one directory. cd ~ (the tilde). The ~ means the home directory, so this command will always change back to your home directory (the default directory in which the Terminal opens).
Must Read
How do you exit a directory in command prompt?
You can not get “out” of a folder. Well, you can, but only by changing to a different directory. In the terminal, you always have a current working directory. The cd command changes this working directory to the specified one.