mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 01:53:16 +00:00
Update cheatsheets
This commit is contained in:
26
dirs
Normal file
26
dirs
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Directory-Stack-Builtins>.
|
||||
|
||||
- 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`
|
||||
Reference in New Issue
Block a user