分页: 1 / 1

modprobe -l命令无法使用

发表于 : 2015-03-26 19:02
ClumsyBear
终端输入modprobe -l,结果是modprobe: invalid option --'l',请问是怎么回事?

Re: modprobe -l命令无法使用

发表于 : 2015-03-26 20:46
rosynirvana
因为没有-l这个参数啊
你要干啥?

Re: modprobe -l命令无法使用

发表于 : 2015-03-26 21:25
wgj
你是不是想用lsmod?

Re: modprobe -l命令无法使用

发表于 : 2015-03-26 22:24
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 參數

Re: modprobe -l命令无法使用

发表于 : 2015-03-27 9:28
ClumsyBear
rosynirvana 写了:因为没有-l这个参数啊
你要干啥?
我想显示所有模块,包括已加载和未加载的模块

Re: modprobe -l命令无法使用

发表于 : 2015-03-27 9:29
ClumsyBear
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 參數
那应该用什么替代?

Re: modprobe -l命令无法使用

发表于 : 2015-03-27 12:09
poloshiao
那应该用什么替代?
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
... 以下省略