9:45 PM
Subject: How do I permanently set the PATH variable ?
Hi all,
How do I permanently set the PATH variable to include the PATH i want
eg. /sbin ? tried export but I don't think its permanent.
thanks,
/ethan
___
Redhat-list mailing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 28 Nov 2001, Dan Egli wrote:
if you mean permanant as in next time you login, you have to set it in your
login script. It's .bashrc
or you can edit /etc/profile and add it there, making it global to all
users.
Paths are set in
Anthony E. Greene wrote:
-
Paths are set in ~/.bash_profile. Aliases are set in ~/.bashrc.
-
Basically all are loaded when you login
The sequence is (at least on my RH 62 and 72 sys):
/etc/profile
~/.bash_profile
~/.bashrc
/etc/bashrc
Now .bash_profile
In message 4165C48DE9A0D211B6400800095C585F172B87@WASHINGTON,
Patrick Nelson
writes:
[snip]
Now if you put a echo $PATH prior to any commands and login it echos the
following:
on 62 sys -- users - /usr/local/bin:/bin:/usr/bin
root - /sbin:/bin:/usr/sbin:/usr/bin
Hi all,
How do I permanently set the PATH variable to include the PATH i want
eg. /sbin ? tried export but I don't think its permanent.
thanks,
/ethan
___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wednesday 28 November 2001 11:45 pm, ethan wrote:
Hi all,
How do I permanently set the PATH variable to include the PATH i want
eg. /sbin ? tried export but I don't think its permanent.
You could do it in /etc/profile, have a look at how
p == phil46 ethan writes:
p Hi all,
p How do I permanently set the PATH variable to include the PATH i want
p eg. /sbin ? tried export but I don't think its permanent.
For a single user, in your shell config file, such as .bash_profile add:
PATH=$PATH:/sbin
For the system add it to /etc
thanks guys for your help...
Ray Curtis wrote:
[EMAIL PROTECTED]">
"p" == phil46 ethan writes:
p Hi all,p How do I permanently set the PATH variable t