Linux Commands Helper
💬 Your AI-powered Linux assistant
rmmod Command - Remove Kernel Modules
The rmmod command is used to remove (unload) a module from the Linux kernel. It is typically used for managing kernel modules manually.
Syntax
rmmod [options] module_name
Examples
rmmod usb_storage
Remove the usb_storage kernel module.
rmmod -f module_name
Force remove a module (use with caution).
Notes
- rmmod only removes modules that are not in use and not dependent on other modules.
- Use
lsmod
to list currently loaded modules. - For automatic dependency handling, use
modprobe -r
instead of rmmod (if available).