Which command would you use to check the installed kernel modules on a Linux system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command you would use to check the installed kernel modules on a Linux system is "lsmod." This command displays the status of modules currently loaded into the Linux kernel, providing useful information such as the names of the modules, their sizes, and the use count (indicating how many instances of each module are currently in use). This is particularly valuable for troubleshooting and understanding what kernel modules are active in the system at any given time.

In contrast, "modinfo" retrieves information about a specific module rather than listing all the currently loaded modules. It provides details such as the module version, author, description, and any parameters that can be set for it.

"modprobe" is used to add or remove modules from the kernel. While it's used for managing modules, it does not list the currently loaded ones.

"insmod" is a command used to insert a specific module into the kernel. It also does not serve the purpose of listing currently installed or loaded modules.

Thus, "lsmod" is the appropriate command to use when needing to view the loaded kernel modules on a Linux system.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy