It looks like your PATH is missing /usr/bin (or possibly /usr is not mounted)
Code:
$ which apt-get
/usr/bin/apt-get
$ which sudo
/usr/bin/sudo
$ which su
/bin/su
$
You can try either giving the full path to the program, or just add /usr/bin back to your path
Code:
export PATH=$PATH:/usr/bin
or you could reset PATH to its default value
Code:
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
or possibly even try
Code:
export $(/bin/cat /etc/environment)
These only apply to the current terminal, so you'll want to figure out why your setup is broken and fix it though (possibly something you entered in your ~/.bashrc or ~/.profile files)
Bookmarks