December 2002
Intermediate to advanced
1616 pages
39h 57m
English
Using a shell
, you can store a list of directories you are working with, enabling you to move easily among them. The list is referred to as a stack. You can think of it as a stack of dinner plates; you typically add plates to and remove plates from the top of the stack: a first-in last-out, or FILO, stack.
The dirs builtin
displays the contents of the directory stack. If you call dirs when the directory stack is empty, it displays the name of the working directory:
$ dirs ~/literature ...Read now
Unlock full access