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
Written by Alan Gonzalez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#