| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.8.1 Directory Stack Builtins
dirs-
dirs [-clpv] [+N | -N]
Display the list of currently remembered directories. Directories are added to the list with the
pushdcommand; thepopdcommand removes directories from the list.-cClears the directory stack by deleting all of the elements.
-lProduces a listing using full pathnames; the default listing format uses a tilde to denote the home directory.
-pCauses
dirsto print the directory stack with one entry per line.-vCauses
dirsto print the directory stack with one entry per line, prefixing each entry with its index in the stack.+NDisplays the Nth directory (counting from the left of the list printed by
dirswhen invoked without options), starting with zero.-NDisplays the Nth directory (counting from the right of the list printed by
dirswhen invoked without options), starting with zero.
popd-
popd [-n] [+N | -N]
Remove the top entry from the directory stack, and
cdto the new top directory. When no arguments are given,popdremoves the top directory from the stack and performs acdto the new top directory. The elements are numbered from 0 starting at the first directory listed withdirs; that is,popdis equivalent topopd +0.-nSuppresses the normal change of directory when removing directories from the stack, so that only the stack is manipulated.
+NRemoves the Nth directory (counting from the left of the list printed by
dirs), starting with zero.-NRemoves the Nth directory (counting from the right of the list printed by
dirs), starting with zero.
pushdpushd [-n] [+N | -N | dir]
Save the current directory on the top of the directory stack and then
cdto dir. With no arguments,pushdexchanges the top two directories.-nSuppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.
+NBrings the Nth directory (counting from the left of the list printed by
dirs, starting with zero) to the top of the list by rotating the stack.-NBrings the Nth directory (counting from the right of the list printed by
dirs, starting with zero) to the top of the list by rotating the stack.dirMakes the current working directory be the top of the stack, making it the new current directory as if it had been supplied as an argument to the
cdbuiltin.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on February 28, 2014 using texi2html 5.0.
