What does echo $PATH give you? If nothing check the users home directory and look in any ~/.bash* files for a PATH setting. eg; mark@bender:~$ echo $PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin mark@bender:~$ ll .bash* -rwxr-xr-x 1 mark staff 3.0K 19 Jul 13:32 .bash_aliases -rw------- 1 mark staff 14K 11 Aug 22:34 .bash_history -rwxr-xr-x 1 mark staff 220B 17 Jul 19:59 .bash_logout -rwxr-xr-x 1 mark staff 1.3K 25 Jul 12:02 .bash_profile -rwxr-xr-x 1 mark staff 2.4K 18 Jul 18:11 .bashrc mark@bender:~$ grep PATH .bash* .bash_profile:# set PATH so it includes user's private bin if it exists .bash_profile: PATH=~/bin:"${PATH}" .bash_profile:# do the same with MANPATH .bash_profile:# MANPATH=~/man:"${MANPATH}" .bash_profile:export PATH=/opt/local/bin:/opt/local/sbin:$PATH
On 12 August 2012 11:37, <li...@sbt.net.au> wrote: > I have this system that's seems to have lost path to binaries, that > applies to just about every command I've tried > > executing with full path works OK ('whereis' executes OK) > > how/where to fix this ? > > # init 6 > bash: init: command not found > # whereis init > init: /sbin/init /etc/init.d /usr/share/man/man8/init.8.gz > # /sbin/init 6 > > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html