0

In bash you can type:

cd -

to go back to your previous location.

How do I do this in Cmder?

gummiost
  • 654
  • 7
  • 15

2 Answers2

1

In cmd you can use pushd to change folders taking care of the history

pushd C:\some\path

And use popd to return one step before

popd
Maximus
  • 10,751
  • 8
  • 47
  • 65
-1

In Cmder or any other cmd you can just use

cd..
Basil
  • 1
  • 4
  • This goes one step up in the directory. It does not go to your previous location, unless your previous location was the parent directory of your current location. – gummiost Jun 03 '22 at 22:19