why i can't find insmod and rmmod in red hat linux 9?

zhutiger

新手上路
注册
2002-08-22
消息
294
荣誉分数
0
声望点数
0
why i can't find insmod and rmmod in red hat linux 9?

It doesn't list in my /bin. Anyone knows how can I install it ?
Thanks in advance!

[root@modemcable083 c]# gcc -c hello.c
[root@modemcable083 c]# ls
hello.c hello.o
[root@modemcable083 c]# insmod hello.o
bash: insmod: command not found
[root@modemcable083 c]# lsmod
bash: lsmod: command not found
[root@modemcable083 c]# rmmod
bash: rmmod: command not found
 
就一个hello.c要用到那些东西吗?:blink:
 
最初由 胖蹄阿克 发布
就一个hello.c要用到那些东西吗?:blink:

A device driver program in it.
 
it is because you don't have superuser privilege.
 
add /sbin to your default path

you are login as root, so it's not about su privildge. It's just that /sbin is not in you path. Or alternatively, you could do /sbin/insmod/hello.o
 
sorry, I meant to say:
/sbin/insmod hello.o

adding to path, you do:
export PATH="$PATH:/sbin"


but it might not be safe to do so. Be aware of that.
 
后退
顶部