Last Updated: February 25, 2016
·
393
· alanboy

pushd/popd

Stores the current directory for use by the POPD command, then changes to the specified directory.

pushd /etc/
cat passwd #do stuff
popd # return to original dir

In windows:
If Command Extensions are enabled and a network path is specified, PUSHD will create a temporary drive letter !

pushd \\box2\documents