"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"