DIRS(1) fish-shell DIRS(1)

# [NAME](#NAME)

dirs - print directory stack

# [SYNOPSIS](#SYNOPSIS)

```
dirs [-c]
```

# [DESCRIPTION](#DESCRIPTION)

**dirs** prints the current directory stack &lt;#directory-stack&gt;, as created by pushd &lt;&gt; and modified by popd &lt;&gt;.

The following options are available:

[**-c**:](#c)

Clear the directory stack instead of printing it.

[**-h** or **--help**](#h)

Displays help about using this command.

**dirs** does not accept any arguments.

# [SEE ALSO](#SEE_ALSO)

•

the cdh &lt;&gt; command, which provides a more intuitive way to navigate to recently visited directories.

# [Copyright](#Copyright)

fish-shell developers

October 15, 2026 4.9

---

Document: dirs(1) from fish 4.9.3-r3 (Chainguard OS)
Source: https://github.com/fish-shell/fish-shell
