$DIRSTACK
–
Directory Stack
$DIRSTACK contains the values of the directory stack.
pushd adds to the stack, popd removes from the stack. The builtin command dirs displays the values of the stack.
Links
BashSupport Pro ist eine Bash IDE mit Unterstützung für $DIRSTACK – probieren Sie es aus!