POPD(1) fish-shell POPD(1)

# [NAME](#NAME)

popd - move through directory stack

# [SYNOPSIS](#SYNOPSIS)

```
popd
```

# [DESCRIPTION](#DESCRIPTION)

**popd** removes the top directory from the directory stack &lt;#directory-stack&gt; and changes the working directory to the new top directory. Use pushd &lt;&gt; to add directories to the stack.

The **-h** or **--help** option displays help about using this command.

# [EXAMPLE](#EXAMPLE)

```
pushd /usr/src
# Working directory is now /usr/src
# Directory stack contains /usr/src
pushd /usr/src/fish-shell
# Working directory is now /usr/src/fish-shell
# Directory stack contains /usr/src /usr/src/fish-shell
popd
# Working directory is now /usr/src
# Directory stack contains /usr/src
```

# [SEE ALSO](#SEE_ALSO)

- the dirs &lt;&gt; command to print the directory stack
- the cdh &lt;&gt; command which provides a more intuitive way to navigate to recently visited directories.

# [Copyright](#Copyright)

fish-shell developers

October 10, 2026 4.9

---

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