LinuxQuestions.org

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

g_p_linux 01-14-2012 04:43 AM

sudo: insmod: command not found
 
Hello,

i'm trying to load a kernel module and i can't cause the insmod command is not found.

I did:
  1. cd /
  2. cd sbin
  3. "insm" and Press Tab the command "insmod" appears
  4. su LoginUser
  5. password requested - password accepted
  6. sudo insmod
  7. sudo: insmod: command not found

In the sbin folder "insmod" appears, but when i type the command "insmod" i get a command not found

What shall i do in order to fix that?

Thanks, in advabce

g_p_linux 01-14-2012 05:16 AM

Hello,

i solved it.

In the 6th step i had typed "sudo insmod" instead of "sudo /sbin/insmod"

Now it's fine,
thanks

brianL 01-14-2012 06:33 AM

You could have used modprobe.
http://linux.die.net/man/8/modprobe

g_p_linux 01-14-2012 06:42 AM

Thanks,

i didn't know about that command but i'll check it out!

forbidden_masud 04-17-2020 03:42 AM

use apt-get install kmod

or if your use centos then use : yum install kmod


All times are GMT -5. The time now is 10:13 PM.