GO KALI FREE
Navigation Commands

dirs Linux Command

Displays the directory stack (list of directories saved with pushd).

What does dirs do?

Displays the directory stack (list of directories saved with pushd).

Syntax

dirs [options]

Practical example

dirs -v

Related Navigation Commands

popd

Returns to the directory saved by the last pushd command.

pwd

Prints the current working directory (full path from root).

pushd

Saves the current directory and then changes to the specified directory.

ls

Lists files and directories in the current directory.

cd -

Switches back to the previous working directory.

cd

Changes the current working directory to the specified path.