5

Possible Duplicate:
Navigate to previous directory in windows command prompt

Is there an equivalent of Linux's cd - (change to previous directory) in Windows?

Steven
  • 2,329
  • 12
  • 35
  • 41

3 Answers3

5

popd, which is to be used alongside pushd.

Jon
  • 1,061
  • 1
  • 9
  • 9
1

See Navigate to previous directory in windows command prompt

Martin Beckett
  • 9,753
  • 1
  • 27
  • 28
-1

Yeah, it's identical, see here:

cd is frequently included built directly into the command line interpreter. This is the case in most of the Unix shells (Bourne shell, tcsh, bash, etc.), cmd.exe and Windows PowerShell on Windows and COMMAND.COM on DOS.

slhck
  • 223,558
  • 70
  • 607
  • 592
sharpner
  • 115
  • 1
  • Whilst this may theoretically answer the question, [it would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Tamara Wijsman Jul 16 '12 at 01:47
  • -1 because cd is subtly different on Windows/DOS compared to Linux, and the OP question was about a specific option which doesn't work on the windows version. – Joseph Rogers Nov 03 '16 at 10:38