Setting default $PATH

enclair wifienclair at gmail.com
Sat Mar 17 15:32:56 UTC 2012


Le 17 mars 2012 15:29, Ed Greshko <Ed.Greshko at greshko.com> a écrit :

> On 03/17/2012 05:21 PM, enclair wrote:
> > Hi,
> >
> > By default in Fedora /usr/local/bin is before /usr/bin
> > Where is it defined?
> > In /etc/profile, only /usr/local/sbin is set.
> >
> >
>
> I believe it is complied into /bin/bash.
>
> If you edit the /etc/profile to first issue an echo $PATH > /tmp/test you
> will set
> that it is already set.  Further, if you do a:
>
> strings /bin/bash | grep local
>
> you will see...
>
> /usr/local/bin:/bin:/usr/bin
>
> Which is the same what you get in your /tmp/test file.
>

I've found it is the default of the login program too (man login).
In the init process Fedora uses PATH="/sbin:/usr/sbin:/bin:/usr/bin"
(/etc/init.d/functions)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120317/624dfe29/attachment.html>


More information about the users mailing list