Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the rmmod command of linux to delete the module

Shulou Source: shulou.com Published: 2022-06-02 15:24:15 10月27日 Update

This article mainly introduces the use of linux rmmod command to delete the module, the article is very detailed, has a certain reference value, interested friends must read it!

Rmmod is short for "remove module", and the rmmod command is used to delete modules. Execute the rmmod command to remove unwanted modules. The core of the Linux operating system is modular, so when compiling the core, you don't need to put all the functions into the core, you can compile these functions into separate modules, and then load them separately when necessary.

Syntax format: rmmod [parameters] [module name]

Common parameters:

-a delete all modules that are not currently needed-s outputs the information to the syslog resident service, rather than the terminal interface-v displays the details of instruction execution-f forcibly remove the module, it is dangerous to use this option-w wait until you know the module can be removed

Reference example

Uninstall the module pppoe and display the execution information:

[root@linuxcool] # rmmod-v pppoe

Uninstall the bridge module:

[root@linuxcool ~] # rmmod bridge

Uninstall the bridge module and write the error message to syslog:

[root@linuxcool] # rmmod-s bridge

Isolate the bridge module that is in use and know that it is not used:

[root@linuxcool ~] # rmmod-w bridge

Delete the bridge module in use (- f can delete the module in use, very dangerous, use with caution):

[root@linuxcool ~] # rmmod-f bridge above is to delete all the contents of the module using the rmmod command of linux. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Module command information core current danger content function parameter reference compilation operating system value interest name instance buddy buddy commonly used instruction Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Docker Redmi Shulou Technology macOS