1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 20:46:00 +02:00

Added the dirs command

Fix build & Add definition of stack

Added reference to pushd/popd in description
This commit is contained in:
Starbeamrainbowlabs 2016-02-10 17:36:38 +00:00
parent a9258feb22
commit a76141742f

20
pages/common/dirs.md Normal file
View file

@ -0,0 +1,20 @@
# 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`