'cd back to previous location in Cmder

In bash you can type:

cd -

to go back to your previous location.

How do I do this in Cmder?



Solution 1:[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

Solution 2:[2]

In Cmder or any other cmd you can just use

cd..

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maximus
Solution 2 Basil