LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   command not found (https://www.linuxquestions.org/questions/linux-newbie-8/command-not-found-42206/)

jkp 01-20-2003 06:35 PM

command not found
 
back again ! In an effort to install my modem Ihave found some commands the get the "bash: cmd: command not found " message.
The two that I have found so far are insmod and lspci.
both exist in /sbin and I have tried to run them as both a user and also su'ing to root. I don't get it. thanks for the help in advance. ...jp...

bulliver 01-20-2003 06:39 PM

even when you su you still assume the regular users path, so try this: "su - root" then try...

If it still doesn't work then type "echo $PATH" when you are logged in as root and make sure /sbin is in there. if not try "PATH=$PATH:/sbin:/usr/sbin" and add it to ~/.bashrc to make it permanent.

bulin 01-20-2003 09:40 PM

You can also run it like that:
./insmod

jkp 01-21-2003 02:26 PM

thanks
 
Thanks to both of you!


All times are GMT -5. The time now is 02:31 AM.