dirs Command Examples

Display or manipulate the directory stack. The directory stack is a list of recently visited directories that can be manipulated with the pushd and popd commands. More information: https://www.gnu.org/software/bash/manual/bash.html#Directory-Stack-Builtins.

dirs

dirs -p

dirs +{{N}}

dirs -c