O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Directory Stack

The directory stack is a list of directories that you can use to save yourself some typing as you navigate around the directory tree. In traditional Last In First Out (LIFO) data structures, you must retrieve data (in this case, directories) in reverse of the order in which they were stored. That is also true by default in accessing the directory stack. However, unlike classical LIFO stacks, the tcsh directory stack provides a mechanism (an option to popd) for accessing the directories out of sequence.

Example: Say you're in the directory dir1. You want to move around a little bit looking for files or whatever, but you're planning to come back to your current directory at some point. In order to save yourself some typing, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required