Changing Your csh Path

The path statement tells the shell where to look for commands, scripts, and programs. So if you issue a command, the path statement tells the system to look for the command in the named directories in a specific order. As the following steps show, you change your csh path by first identifying where your path statement is located, then editing the file that contains it (Code Listing 8.19).

Code Listing 8.19. Use grep to find the path statement in your configuration files.
xmission> grep -i path ~/.cshrc ~/.login
.cshrc:set path = (/usr/local/bin /usr/
→ local/bin/X11 /usr/openwin/bin
→ /usr/bin)
xmission>

To change your csh path:

1.
grep -i path ~/.cshrc ~/.login To begin, list the configuration files located in your ...

Get Unix Third Edition: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.