Linux Commands Helper
💬 Your AI-powered Linux assistant
modprobe Command - Add and Remove Kernel Modules
The modprobe command is used to add or remove modules from the Linux kernel. It automatically handles module dependencies, making it the preferred tool for managing kernel modules.
Syntax
modprobe [options] module_name
Examples
modprobe usb_storage
Load the usb_storage kernel module and its dependencies.
modprobe -r usb_storage
Remove the usb_storage kernel module and any modules that depend on it.
Notes
- modprobe is preferred over insmod/rmmod for handling dependencies automatically.
- Use
lsmod
to list currently loaded modules. - Requires root privileges to load or unload modules.