Which command displays the modules that are currently loaded into memory?

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 that displays the modules currently loaded into memory is "lsmod." When executed, it provides a list of all the kernel modules that are currently active, alongside information such as the size of each module and their usage count. This command is particularly useful for administrators and users seeking to diagnose issues related to hardware drivers or other kernel functionalities.

The "modprobe" command is utilized for adding or removing modules from the Linux kernel, but it does not display currently loaded modules. Instead, it manages the module dependencies and ensures that all necessary components are available when loading new modules.

The "lspci" command lists all PCI devices on the system, allowing users to see the hardware components connected to the PCI bus, but it does not provide any information about loaded kernel modules.

"Ioping" is a tool specifically used for testing and diagnosing I/O latency, primarily for filesystems, and it is not related to displaying loaded modules.

Therefore, "lsmod" is the appropriate command for viewing the modules currently in memory, making it the correct choice.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy