What would you use to view the current modules loaded into the kernel?

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!

Using "lsmod" is the appropriate command to view the current modules loaded into the Linux kernel because it provides a straightforward output of the modules currently in memory along with their sizes and the use count – essentially showing which modules are active. This command interfaces with the kernel through the /proc filesystem, specifically reading from /proc/modules, where this information is kept.

The alternative commands mentioned do not serve the same purpose. For instance, "modprobe list" does not exist as a command and may confuse with commands like "modprobe -l," which lists available modules rather than those currently loaded. "modprobe show" isn’t a standard command either, and would not yield the information about loaded modules. "depmod -l" also does not display loaded modules; rather, "depmod" is used for generating module dependency information and is more concerned with the relationships between modules rather than their current status in memory. Thus, "lsmod" is definitively the command to utilize for identifying which kernel modules are currently loaded.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy