CompTIA Linux+ (XK0-006)System ManagementMedium
A system administrator is troubleshooting a server with intermittent network connectivity issues. They suspect a problem with the network interface card (NIC) driver or its parameters. Which command can be used to display detailed information about the currently loaded kernel modules, including their dependencies and parameters?
- Amodprobe -l
- Bmodinfo <module_name>
- Cdepmod -n
- Dlsmod
Show answer & explanationAnswer & explanation
Correct answer: B. modinfo <module_name>
The 'modinfo' command provides comprehensive information about a specific kernel module, including its filename, author, description, license, dependencies, and any parameters it accepts. This is crucial for troubleshooting driver issues.
Why the other options are wrong
- A. modprobe -l lists all known modules, not just loaded ones, and doesn't show detailed info or parameters.
- C. depmod is used to generate module dependency files, not to display information about loaded modules.
- D. lsmod lists currently loaded kernel modules but provides less detail than modinfo.
modinfo
A command-line utility used to display information about a specific Linux kernel module. It retrieves details from the module file itself, typically located in /lib/modules/<kernel-version>/.
- Shows module filename, author, description, license, and version.
- Crucially lists module parameters and their descriptions.
- Also displays dependencies (modules required by the queried module).
Memory trick: Module Info Details Every Parameter and Dependency.