How Do You Unload a Module in Linux?
Contents

How do I unload a module in Linux?

To unload a kernel module, we use the rmmod (remove module) command. The following example will unload or remove the speedstep-lib. ko module.

How do you load and unload a kernel module?

modprobe command is used to add and remove module from the kernel. Linux maintains kernel module directory under ‘/lib/modules/’uname -r’/kernel/drivers/’ and configuration files(except for additional configuration file in /etc/modprobe. d/). If we want to look at kernel drivers then run the beneath command.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest