This article was co-authored by wikiHow staff writer, Travis Boylls. Travis has been a tech writer at wikiHow for more than 10 years. He has also worked in technical support for Dish Network and AT&T Wireless. He studied graphic design and web design at Pikes Peak Community College. He specializes in Windows, macOS, Linux, Android, iOS, and video game consoles. Travis has had a fascination with computers and technology that goes all the way back to childhood. He is proficient in all manner of software and computer operating systems.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 499,745 times.
Learn more...
Do you need to go back a directory when browsing through the Command Prompt? Folder (also called "directory") navigation in Command Prompt might seem challenging at first, but once you learn some simple commands, it'll be easy to go back to a previous folder or move up a directory. This wikiHow article teaches you how to go back a directory in CMD as well as other useful navigation commands.
Quick Commands to Go Back in Command Prompt
- To go back a directory, type cd.. and press Enter.
- To go back multiple directories, type cd, followed by a space, then ..\ for each directory you want to go back (i.e., cd ..\..\..\).
- Type cd \ to go back to the root of the current drive.
Steps
Expert Q&A
Tips
-
When you start typing the directory name, you can press Tab to autocomplete the directory name.Thanks
-
To quickly change to a specific directory, type cd and then drag and drop the folder you want to change into CMD from File Explorer. Then press Enter.Thanks
-
If you get an “access denied” error, try running CMD as an administrator. To do so, right-click CMD in the Windows Start menu and click Run as administrator. You must be logged into an administrative account.Thanks
Video
References
- ↑ https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cd
- ↑ https://www3.ntu.edu.sg/home/ehchua/programming/howto/CMD_Survival.html
- ↑ https://finance.uw.edu/recmgt/resources/list-your-folder-structure-windows
- ↑ https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/pushd
About This Article
1. Open the Command prompt.
2. Type cd.. Into the prompt.




