"Hack #5: Use dirs, pushd and popd to manipulate
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"
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.