Do you need to go back a directory when browsing files through the Command Prompt? File 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 will teach you how to use the "cd.." command, which takes you back to the previous directory at the Windows Command Prompt.

Steps

  1. 1
    Open the Command prompt. You can usually find it by typing “command” into the search bar and selecting it in the search results.
  2. 2
    Type in the name of the file you want to see. While in the command prompt menu, you can view any files on your computer in a text-only format by typing in the location (usually a disk) and the file name (including any extensions).
    Advertisement
  3. 3
    Type. cd.. into the prompt. After you press Enter, this command tells the program to navigate back to the previous folder.[1]
    • It’s important you type the two dots, since you won’t navigate anywhere if you simply type “cd” into the prompt.
  4. 4
    Type cd \ into the prompt to go back to the directory. If you need to navigate from a location back to the main command prompt, this command takes you back immediately.
  5. Advertisement

About This Article

wikiHow Staff
Co-authored by:
wikiHow Staff Writer
This article was co-authored by wikiHow Staff. Our trained team of editors and researchers validate articles for accuracy and comprehensiveness. wikiHow's Content Management Team carefully monitors the work from our editorial staff to ensure that each article is backed by trusted research and meets our high quality standards. This article has been viewed 291,287 times.
How helpful is this?
Co-authors: 5
Updated: October 5, 2022
Views: 291,287
Categories: Command Prompt
Article SummaryX

1. Open the Command prompt.
2. Type cd.. Into the prompt.

Did this summary help you?
Advertisement