LinuxCommandLibrary

dirs

dirs

TLDR

Display the directory stack with a space between each entry

$ dirs
copy


Display the directory stack with one entry per line
$ dirs -p
copy


Display only the nth entry in the directory stack, starting at 0
$ dirs +[N]
copy


Clear the directory stack
$ dirs -c
copy

Copied to clipboard