Which command is used to remove a module from 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!

The command used to remove a module from the kernel is rmmod. This command specifically handles the removal of loadable kernel modules, which are components that can be loaded into or unloaded from the kernel at runtime.

When executed, rmmod will ensure that the specified module is no longer in use by any processes before unloading it, which is critical for maintaining system stability. The utility manages dependencies and will prevent removal if other modules or processes depend on the one being unloaded.

In contrast, unload_module, modprobe remove, and modprobe delete are not valid commands. modprobe is a tool for managing kernel modules, primarily used for loading them into the kernel with automatic dependency handling, but does not have a built-in command for removing modules directly; it uses rmmod under the hood for that purpose. Thus, in the context of directly removing a module, rmmod is the correct and appropriate choice.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy