- Published on
rmmod command-delete module
Jonas
rmmod is short for "remove module", and the rmmod command is used to delete a module. Execute the rmmod command to delete unnecessary modules. The core of the Linux operating system has modular features, so when compiling the core, you don't need to put all the functions into the core, you can compile these functions into individual modules, and then load them separately when needed.
Syntax: rmmod [parameter] [module name]
Command parameters
-a | Delete all modules that are not currently needed |
-s | Output information to syslog resident service instead of terminal interface |
-v | Show detailed information about command execution |
-f | Force removal of the module, using this option is more dangerous |
-w | Waiting, know that the module can be removed before removing the module |
Example
Uninstall the module pppoe and display the execution information:
[root@linuxstar ~]# rmmod -v pppoe
Uninstall the bridge module:
[root@linuxstar ~]# rmmod bridge
Uninstall the bridge module and write error information to syslog:
[root@linuxstar ~]# rmmod -s bridge
Isolate the bridge module being used, knowing that it is not being used:
[root@linuxstar ~]# rmmod -w bridge
Delete the bridge module in use (-f can delete the module in use, it is very dangerous, use it with caution):
[root@linuxstar ~]# rmmod -f bridge