CmdID

CmdID / Commands

dirs

Display or manipulate the directory stack. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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.

Display the directory stack with a space between each entry

Display the directory stack with one entry per line

dirs -pIdentify

Display a numbered list of entries in the directory stack

dirs -vIdentify

Display the directory stack without the tilde-prefix (~)

dirs -lIdentify

Display only the nth entry in the directory stack, starting at 0 (Bash only)

dirs +nIdentify

Display only the nth entry in the directory stack from the last, starting at 0 (Bash only)

dirs -nIdentify

Clear the directory stack

dirs -cIdentify