Using pushd to get to network paths

Avatar

Buck

A short while ago I saw someone at the office use pushd to cd into a network path.  I’ve used pushd/popd on Windows for some time, but I never thought to try it on a network path or actually read the help for it.  Pushd will actually map the path to a drive letter automatically and then take you there.  The latter part is expected, but mapping the drive is really cool.  Maybe it should be obvious (how else would the command line do it?), but it wasn’t to me.  It’s a lot more convenient than “net use“ or anything else that I know of.

Avatar
Buck Hodges

Follow Buck   

0 comments

    Leave a comment