modprobe -l命令无法使用

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
ClumsyBear
帖子: 5
注册时间: 2013-07-20 9:44
系统: ubuntu 12.10

modprobe -l命令无法使用

#1

帖子 ClumsyBear » 2015-03-26 19:02

终端输入modprobe -l,结果是modprobe: invalid option --'l',请问是怎么回事?
rosynirvana
帖子: 893
注册时间: 2011-02-14 17:46

Re: modprobe -l命令无法使用

#2

帖子 rosynirvana » 2015-03-26 20:46

因为没有-l这个参数啊
你要干啥?
wgj
帖子: 294
注册时间: 2007-06-02 20:00

Re: modprobe -l命令无法使用

#3

帖子 wgj » 2015-03-26 21:25

你是不是想用lsmod?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: modprobe -l命令无法使用

#4

帖子 poloshiao » 2015-03-26 22:24

请问是怎么回事?
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 參數
ClumsyBear
帖子: 5
注册时间: 2013-07-20 9:44
系统: ubuntu 12.10

Re: modprobe -l命令无法使用

#5

帖子 ClumsyBear » 2015-03-27 9:28

rosynirvana 写了:因为没有-l这个参数啊
你要干啥?
我想显示所有模块,包括已加载和未加载的模块
ClumsyBear
帖子: 5
注册时间: 2013-07-20 9:44
系统: ubuntu 12.10

Re: modprobe -l命令无法使用

#6

帖子 ClumsyBear » 2015-03-27 9:29

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 參數
那应该用什么替代?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: modprobe -l命令无法使用

#7

帖子 poloshiao » 2015-03-27 12:09

那应该用什么替代?
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
... 以下省略
回复