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.-
-L
file
Recreate stack from file, which should have been created by
dirs -S
file
.-
-n
Wrap output.
-
-S
file
Print to file a series of pushd and popd commands that can be invoked to replicate the stack.
-
-v
Print one directory per line.
Get Unix in a Nutshell, 4th 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.