modprobe -l命令无法使用
-
- 帖子: 5
- 注册时间: 2013-07-20 9:44
- 系统: ubuntu 12.10
modprobe -l命令无法使用
终端输入modprobe -l,结果是modprobe: invalid option --'l',请问是怎么回事?
-
- 帖子: 893
- 注册时间: 2011-02-14 17:46
Re: modprobe -l命令无法使用
因为没有-l这个参数啊
你要干啥?
你要干啥?
-
- 帖子: 294
- 注册时间: 2007-06-02 20:00
Re: modprobe -l命令无法使用
你是不是想用lsmod?
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: modprobe -l命令无法使用
1. Ubuntu 12.04 及 以前请问是怎么回事?
http://manpages.ubuntu.com/manpages/pre ... obe.8.html
modprobe -- program to add and remove modules from the Linux Kernel
-l --list
List all modules matching the given wildcard (or "*" if no wildcard is given). This option is provided for backwards compatibility and may go away in future:
2. Ubuntu 14.04 及以後
http://manpages.ubuntu.com/manpages/tru ... obe.8.html
modprobe - Add and remove modules from the Linux Kernel
已經沒有 -l 參數
-
- 帖子: 5
- 注册时间: 2013-07-20 9:44
- 系统: ubuntu 12.10
Re: modprobe -l命令无法使用
我想显示所有模块,包括已加载和未加载的模块rosynirvana 写了:因为没有-l这个参数啊
你要干啥?
-
- 帖子: 5
- 注册时间: 2013-07-20 9:44
- 系统: ubuntu 12.10
Re: modprobe -l命令无法使用
那应该用什么替代?poloshiao 写了:1. Ubuntu 12.04 及 以前请问是怎么回事?
http://manpages.ubuntu.com/manpages/pre ... obe.8.html
modprobe -- program to add and remove modules from the Linux Kernel
-l --list
List all modules matching the given wildcard (or "*" if no wildcard is given). This option is provided for backwards compatibility and may go away in future:
2. Ubuntu 14.04 及以後
http://manpages.ubuntu.com/manpages/tru ... obe.8.html
modprobe - Add and remove modules from the Linux Kernel
已經沒有 -l 參數
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: modprobe -l命令无法使用
1. 所有 你正使用中的 Linux kernel 版本 能夠提供的 Linux kernel Modules那应该用什么替代?
sudo ls -alRUv /lib/modules/$(uname -r)/kernel
1-1. 如果檢查 某個關鍵字 的 Module
sudo ls -alRUv /lib/modules/$(uname -r)/kernel | grep 關鍵字
2. 開機已载入的模块
http://manpages.ubuntu.com/manpages/tru ... mod.8.html
lsmod - Show the status of modules in the Linux Kernel
2-1. lsmod
2-2. sudo cat /proc/modules
3. 檢查某一 module 的資訊
modinfo - Show information about a Linux Kernel module
3-1. 例如 開源顯卡驅動 nouveau
3-1-1. sudo ls -alRUv /lib/modules/$(uname -r)/kernel | grep nouveau
/lib/modules/3.16.0-33-generic/kernel/drivers/gpu/drm/nouveau:
-rw-r--r-- 1 root root 1836300 3月 13 19:12 nouveau.ko
3-1-2. sudo modinfo nouveau
filename: /lib/modules/3.16.0-33-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko
license: GPL and additional rights
description: nVidia Riva/TNT/GeForce/Quadro/Tesla
author: Nouveau Project
... 以下省略