Display or manipulate the directory stack. The directory stack is a list of recently visited directories that can be manipulated with the
pushdandpopdcommands. See also:pushd,popd. More information: https://www.gnu.org/software/bash/manual/bash.html#Directory-Stack-Builtins.
dirs
dirs -p
dirs -v
~):dirs -l
nth entry in the directory stack, starting at 0 (Bash only):dirs +{{n}}
nth entry in the directory stack from the last, starting at 0 (Bash only):dirs -{{n}}
dirs -c