Re: Setting default $PATH

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

 



Le 17 mars 2012 15:29, Ed Greshko <Ed.Greshko@xxxxxxxxxxx> 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)

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux