Navigation

The dirs command

Shows the directory stack you have been saving with pushd.

Syntax

dirs

Copy-ready examples

$ dirsShow the stack

You can try them in the browser terminal: it does not touch your computer.

Typical mistakes

  • The current folder is the first in the list.

Related commands

FAQ

Learn to actually use it

The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.

Start the free course