PDA

View Full Version : bash: command not found



manin
30th October 2007, 12:35 PM
Hallo guys,
I just had FC6 to FC7, from dvd.
I give lspci, lsusb, ifconfig and it returnes :
bash: command not found.
If i give ./sbin/lspci it works.
I go to /etc/profile and I see:

#Path manipulation
if ["$EUID"= "0"]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin

I can't think what else may cause this problem
Any ideas?
Thanks

markkuk
30th October 2007, 12:53 PM
Use "su -" instead of plain "su" to become root (http://www.fedorafaq.org/basics/#root). If you omit the space and dash, the $PATH isn't set to include the system management commands in /sbin and /usr/sbin.

manin
30th October 2007, 12:58 PM
It worked. Thanks a lot