1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 05:22:11 +02:00
tldr/pages/common/dirs.md
marchersimon 5d2fa2261d dirs: edit link
Co-authored-by: Axel Navarro <navarroaxel@gmail.com>
2021-04-19 23:05:51 +01:00

544 B

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