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 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.14).

To change your csh path:

1.
grep path ~/.cshrc ~/.login
To begin, list the configuration files located in your home directory and in the /etc directory. Look through your system configuration files for a path statement. As Code Listing 8.14 shows, it'll look something like set path = (/usr/local/bin /usr/local/bin/X11 /usr/openwin/bin /usr/bin). If you ...

Get Unix: 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.