Re: Setting default $PATH

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

 



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.

You can check .bash_profile and .bashrc I forget where it is by default since I set things a bit myself. I have a site wide NFS mounted filesystem with lots of stuff in that, so my path setting is somewhat complex. In order of priority, arch=$(uname -m):
  ${HOME}/bin/${arch}		user personal versions
  /usr/local/${arch}		machine local
  /opt/bin			machine local
  /common/bin/${arch}		site local
then the rest of what was set by default.

NOTE: my PATH *never* includes "." to prevent accidental running of something I never intended. The PATH setting is called from .bashrc, macros and aliases are only defined for interactive shells, not scripts.

--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot
--
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