From a76141742fb5089f0bf4e4581a39e5a53786605e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 10 Feb 2016 17:36:38 +0000 Subject: [PATCH] Added the dirs command Fix build & Add definition of stack Added reference to pushd/popd in description --- pages/common/dirs.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/dirs.md diff --git a/pages/common/dirs.md b/pages/common/dirs.md new file mode 100644 index 000000000..b2ca5a52b --- /dev/null +++ b/pages/common/dirs.md @@ -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`