Which of the following commands would you use if you want to check if a module is currently loaded?

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 you would use to check if a module is currently loaded is "lsmod." This command provides a list of all currently loaded kernel modules along with their sizes and dependencies. By executing "lsmod," you can easily see if a specific module is present in the kernel's memory, which is essential for troubleshooting and ensuring that the necessary modules are available for the system to function correctly.

In contrast, "modinfo" is used to display information about a specific kernel module, such as its version, author, and description, but it does not provide a list of loaded modules. "modprobe" is utilized to add or remove modules from the Linux kernel, making it a method for manipulating module states rather than checking them. "depmod" generates modules' dependency files; while it plays a role in the installation and management of modules, it does not check which modules are currently loaded.

Thus, lsmod is the correct choice for verifying the presence of loaded modules.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy