pushd popd dirs

# push a directory onto the stack
pushd {dir}
# pop the last directory off the stack, change to the next directory in the stack
# view the stack in a numbered list
dirs -v 
# pull the nth directory out of the stack, put it at the top, and change to it
pushd +n
# remove the nth directory from the stack, don't change to it or anything
popd +n