Linux modprobe command
The Linux modprobe command is used to automatically handle loadable modules.
modprobe can load a specified individual module, or load a set of dependent modules. modprobe determines which modules to load based on the dependencies generated by depmod. If an error occurs during loading, modprobe will unload the entire set of modules.
Syntax
modprobe [-acdlrtvV][--help][模块文件][符号名称 = 符号值]
Parameters:
- -a or --all Load all modules.
- -c or --show-conf Display configuration information for all modules.
- -d or --debug Use debug mode.
- -l or --list Display available modules.
- -r or --remove Automatically unload a module when it is idle.
- -t or --type Specify the module type.
- -v or --verbose Display detailed information during execution.
- -V or --version Display version information.
- -help Display help.
Example
Install the floppy drive module:
[root@w3cschool.cc ~]# modprobe -v floppy
Uninstall the floppy drive module:
[root@w3cschool.cc ~]# modprobe -v -r floppy
Linux Command Reference