Name
dirs
Synopsis
dirs [options
]
Print the directory stack, showing the current directory first. See also popd and pushd.
Options
- -c
Clear the directory stack.
- -l
Expand the home directory symbol (~) to the actual directory name.
- -n
Wrap output.
- -v
Print one directory per line.
- -L
file
Re-create stack from
file
, which should have been created by dirs -Sfile
.- -S
file
Print to
file
a series of pushd and popd commands that can be invoked to replicate the stack.
Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.