Which command is used to view currently loaded kernel modules?

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 used to view currently loaded kernel modules is "lsmod." This command provides a simple listing of the modules that are currently loaded into the Linux kernel, along with certain information such as the memory size and dependent modules. It is a straightforward utility that allows system administrators and users to check which modules are active at any given time, thereby helping in troubleshooting and ensuring that the necessary drivers are in place for hardware functionality.

In contrast, the other commands serve different purposes: "modprobe" is used to add or remove modules from the kernel, "rmmod" is specifically for removing a module that is currently loaded, and "depmod" generates module dependency files for use by modprobe. While they are all related to kernel module management, only "lsmod" directly lists the currently loaded modules, making it the correct choice for this question.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy