Which command is used to display the module status in Linux?

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 module status in Linux is lsmod. This command is specifically designed to list all currently loaded kernel modules. When executed, it outputs a list that includes the name of each module, its size, and the specific use count, which indicates how many instances of the module are in use. This information is crucial for system administrators and users who need to troubleshoot or manage kernel modules.

The other commands serve different purposes: modinfo provides detailed information about a specific module, such as its version, parameters, and dependencies, but does not display the status of all loaded modules. modprobe is used to add or remove modules from the kernel, effectively managing the modules rather than displaying their current status. Similarly, insmod is used to insert a module into the kernel, which means it also does not provide information about the status of existing modules.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy