Initial Path - Question...

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Nov 4 14:59:51 UTC 2008


On Tue, Nov 04, 2008 at 11:44:27PM +1000, Michael D. Setzer II wrote:

>I've just added to the .bash_profile
>export PATH=/usr/local/sbin:/sbin:/usr/sbin:/usr/local/bin:/bin:/usr/bin
>
>That seems to work...

Let me point out that you would normally have a stanza like the one
below in your /etc/profile if you can't live with the default.

if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi



More information about the busybox mailing list