mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 21:44:58 +02:00
commit
ac1d402140
1 changed files with 20 additions and 0 deletions
20
pages/common/dirs.md
Normal file
20
pages/common/dirs.md
Normal 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`
|
Loading…
Add table
Reference in a new issue