Re: Add to $PATH how?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux