dirs - print directory stack

概要

dirs [-c]

描述

dirs prints the current directory stack, as created by pushd and modified by popd.

The following options are available:

-c:

Clear the directory stack instead of printing it.

-h or --help

顯示此指令的幫助資訊。

dirs does not accept any arguments.

另請參見

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