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