• Welcome to ComeFromChina Community (CFC中文网)! We are the largest Chinese Canadian community forum in Ottawa. Please to participate in discussions, post topics, view images, and access full community features. Join us today! 欢迎来到CFC中文网。请登录以参与讨论、发布主题并查看图片。

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

zhutiger

知名会员
注册
2002-08-22
消息
294
荣誉分数
0
声望点数
126
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.
 
后退
顶部
首页 论坛
消息
我的