1 1 6.8 The Directory Stack 1 ======================= 1
1 · Directory Stack Builtins Bash builtin commands to manipulate 1 the directory stack. 1 1 The directory stack is a list of recently-visited directories. The 1 'pushd' builtin adds directories to the stack as it changes the current 1 directory, and the 'popd' builtin removes specified directories from the 1 stack and changes the current directory to the directory removed. The 1 'dirs' builtin displays the contents of the directory stack. The 1 current directory is always the "top" of the directory stack. 1 1 The contents of the directory stack are also visible as the value of 1 the 'DIRSTACK' shell variable. 1