In Linux we can use "cd -" to enter the previous directory, like:
/home/user: cd /a
/a: cd -
The - means the latest previous directory.
migrated from stackoverflow.com Dec 11 '09 at 6:21
This question came from our site for professional and enthusiast programmers.
Windows command-line by itself, no...
Not sure it's really what you want, but it might solve some or your problems.
(The other solution being to just... use Linux ^^ )
Maybe you would be interested in this: https://gist.github.com/programus/2d2738b2a746140186f7738b678bdcec
Of course, pushd/popd are great pair of commands, but it cannot switch back once you popped the previous out.
So I made one batch myself, which could maintain a directory history for jumping back, because I have to jump among many directories very often.
Here is the help: