|
||
|
The PATH Examples of changing the PATH in a startup file |
||
|
Korn and Bourne (.profile)
If your login shell is the Korn shell or Bourne shell,
the shell will automatically run any UNIX commands
listed in the file called
.profile in your home directory during the login process. If you want to change your PATH variable, you must change the definition in
this file. The new PATH definition will take effect the next time you login. The sample commands below would be added to your
.profile file to add the current directory (the . directory) to an existing PATH.
PATH=$PATH:. export PATH
If your login shell is the C shell, the shell will automatically run any UNIX commands listed in the file called .login in your home
directory during the login process. The sample commands below could be added to your .login file to add the current directory (the .
directory) to an existing PATH.
setenv PATH ${PATH}:.
|
||
|
|
||