One of the most cumbersome parts of *nix is typing out god damn directory paths. Worse is when you need to switch back and forth between them. If you’re like me, you never typo directory names when shuffling back and forth (sure… )
pushd & popd allow you to memorize a directory, and then quickly switch back to it. Try this on for size:
$ pwd
/home/some/long/directory/name/goes/here/
$ pwd | pushd
$ cd /home/ian/
$ popd
$ pwd
/home/some/long/directory/name/goes/here/
Handy!

Leave a Reply