Contents
How do I exit one 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 -“
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.