mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-25 18:03:07 +03:00
a76141742f
Fix build & Add definition of stack Added reference to pushd/popd in description
21 lines
445 B
Markdown
21 lines
445 B
Markdown
# dirs
|
|
|
|
> Displays or manipulates the directory stack.
|
|
> The directory stack is a list of recently visited directories that can be manipulated with the `pushd` and `popd` commands.
|
|
|
|
- Display the directory stack with a space between each entry:
|
|
|
|
`dirs`
|
|
|
|
- Display the directory stack with one entry per line:
|
|
|
|
`dirs -p`
|
|
|
|
- Display only the nth entry in the directory stack, starting at 0:
|
|
|
|
`dirs +{{N}}`
|
|
|
|
- Clear the directory stack:
|
|
|
|
`dirs -c`
|