OS Manuals

dirs(1)

dirs - print directory stack

DIRS(1) fish-shell DIRS(1)

dirs - print directory stack

dirs [-c]

dirs prints the current directory stack <#directory-stack>, as created by pushd <> and modified by popd <>.

The following options are available:

Clear the directory stack instead of printing it.
Displays help about using this command.

dirs does not accept any arguments.

•
the cdh <> command, which provides a more intuitive way to navigate to recently visited directories.

fish-shell developers

September 9, 2026 4.9

fish 4.9.3-r0 · os · ingested 2026-09-30