[LBo] Re: PATH

James Allen jfallen at gmail.com
Wed Nov 8 04:29:59 CET 2006


james at apollo:~$ export PATH=blah
james at apollo:~$ echo $PATH
blah

james at apollo:~$ source /etc/profile

james at apollo:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

james at apollo:~$ source ~/.bashrc
james at apollo:~$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/home/james/scripts:/home/james/bin:/home/james/bin/code

================

Your PATH is not in /etc/profile. Looks like some distributions don't
keep the default PATH in /etc/profile. Try this:
grep PATH /etc/* | grep /usr/bin
(yes this could be done a better way, but it's getting late) :-)

Secondly, did you add anything to your path in ~/.bashrc?


More information about the QnA mailing list