| Author |
Where is system wide $PATH set?
|
|
| Mark Healey 2004-10-06, 2:45 am |
| I just instlled nethack and it went into a directory that isn't in the
path. Instead of changing the .bash_profile for every user I'd like
to add it to the $PATH that has $HOME/bin attached to in in
..bash_profile.
TIA
--
Mark Heaely
marknews(at)healeyonline(dot)com
| |
| Sverre Larsson 2004-10-06, 2:45 am |
| Mark Healey wrote:
> I just instlled nethack and it went into a directory that isn't in the
> path. Instead of changing the .bash_profile for every user I'd like
> to add it to the $PATH that has $HOME/bin attached to in in
> bash_profile.
>
> TIA
>
> --
> Mark Heaely
> marknews(at)healeyonline(dot)com
Have a look in /etc/profile.d - a directory of "scripts" that sets
enviroment.
| |
| Paul Lutus 2004-10-06, 2:45 am |
| Mark Healey wrote:
> I just instlled nethack and it went into a directory that isn't in the
> path. Instead of changing the .bash_profile for every user I'd like
> to add it to the $PATH that has $HOME/bin attached to in in
> bash_profile.
Do not use that method. Instead, make a symlink to your application
in /usr/local/bin for each application that you want to share with users.
This method is much more trouble-free than editing global search paths, and
it is why there is a /usr/local/bin directory.
In fact, compared to making symlinks to a directory that is already in the
path, adding new directories to everyone's path will only slow the entire
system down.
--
Paul Lutus
http://www.arachnoid.com
|
|
|
|