Add to $PATH how?

Timothy Murphy tim at birdsnest.maths.tcd.ie
Sat Jun 3 15:30:15 UTC 2006


Jon Ingason wrote:

>> For some reason /sbin/ is no longer in my $PATH or root's $PATH
>> 
>> How can I edit my path, and ensure that this is saved upon reboot?
>> 
>> This only seems to be the case in gdm, under tty1 both my account and
>> root have /sbin/ in our $PATH
> 
> For root the /sbin/ is added in /etc/profile. Take a look at it. An
> ordinary user you should not have it in his PATH. But you can add it i
> .bash_profile. Something like this:
> 
> ...
> # User specific environment and startup programs
> 
> PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
> 
> export PATH
> ...

I've never really understood what should go in .bashrc
and what in .bash_profile ... ?


-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland




More information about the fedora-list mailing list