← 返回命令列表

Linux command

modinfo 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

modinfo module_name

Example

modinfo -F author module_name

Example

modinfo -F filename module_name

Example

modinfo -F parm module_name

Example

modinfo -F license module_name

说明

modinfo extracts and displays information from Linux kernel modules. It can show all attributes or specific fields like author, description, license, parameters, and dependencies.

参数

-F, --field FIELD
Show only specified field value
-k, --set-version VERSION
Use modules from specified kernel version
-b, --basedir DIR
Use specified directory as root for modules
-0, --null
Separate field values with NUL instead of newline
-a, --author
Shortcut for -F author
-d, --description
Shortcut for -F description
-l, --license
Shortcut for -F license
-p, --parameters
Shortcut for -F parm
-n, --filename
Shortcut for -F filename

FAQ

What is the modinfo command used for?

modinfo extracts and displays information from Linux kernel modules. It can show all attributes or specific fields like author, description, license, parameters, and dependencies.

How do I run a basic modinfo example?

Run `modinfo module_name` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -F, --field FIELD do in modinfo?

Show only specified field value