O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

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

Increasing Productivity in Accessing Directories

Switching between long directory names can become tiresome and frustrating. The following sections give you some UNIX techniques that can help.

Setting CDPATH for Most-Accessed Directories

In the first chapter, you saw how shell variables can be set to customize how the system operates. The Bourne shell and the Korn shell have a shell variable called CDPATH to enable you to easily get to directories that you use most often, as long as they have distinctive names. After you have set up CDPATH, you can cd to the basename of your common directories as though you were always sitting in the parent directories of those directories.

Setting and Using CDPATH

1.
Make a list of the full pathnames of the ...

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