Re: Adding paths..?


Subject: Re: Adding paths..?
From: michael (mlibby@qwest.net)
Date: Sat Aug 11 2001 - 05:49:13 MDT


On Friday 10 August 2001 23:44, Alan Orth wrote:
> I noticed that some commands that aren't in /bin aren't excecuted unless
> you give a direct path... > Can I fix this?

The following assumes a BASH environment (the default on YDL). Other shells
may vary.

You can add the path to your PATH environment variable by editing
.bash_profile in your user directory (per user change) or /etc/profile (will
affect every account). Sine PATH is defined in /etc/profile, just add (or
even delete) from the line:

PATH="/usr/local/bin:/usr/bin: ... "

if there is no PATH defined in ~/.bash_profile, you can add:

PATH="$PATH:/the/new/directory" (make sure you have $PATH in there
somewhere!)

and make sure that somewhere after that is:
export PATH

General practice seems to be to keep the PATH limited to as few directories
as possible. You might consider creating a special directory for commands you
want to add to PATH, and then symlinking to them in their normal locations
from the special directory.



This archive was generated by hypermail 2a24 : Sat Aug 11 2001 - 04:55:09 MDT