---

6 Awesome Linux cd Command Hacks

[ Thanks to An Anonymous Reader for
this link. ]

“Hack #5: Use dirs, pushd and popd to manipulate
directory stack

You can use directory stack to push directories into it and
later pop directory from the stack. Following three commands are
used in this example.
dirs: Display the directory stack
pushd: Push directory into the stack
popd: Pop directory from the stack and cd to it”


Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis