Skip to content


!!! Example "List available modules that is loaded

```bash
kmod list
```

List loaded modules (lsmod compatibility)

lsmod

Show information about a kernel module

kmod modinfo e1000e

Show detailed information for a module file

modinfo /lib/modules/$(uname -r)/kernel/drivers/net/e1000e.ko

Load a kernel module

kmod modprobe vfat

Unload a kernel module

kmod rmmod vfat

Force unload a kernel module

kmod rmmod -f vfat

Load a module with parameters

kmod modprobe snd-hda-intel power_save=1

Unload a module and its dependencies

modprobe -r snd-hda-intel

Insert a module directly from file

kmod insmod ./example.ko

Remove a module using rmmod compatibility

rmmod example

List static device nodes for current kernel

kmod static-nodes

Rebuild module dependency database

depmod -a

Rebuild dependencies for a specific kernel version

depmod $(uname -r)

Check module dependencies without loading

modprobe --show-depends ext4

Dry-run a module load

modprobe -n overlay

List all aliases for a module

modinfo -F alias usb_storage

Show module description only

modinfo -F description iwlwifi

List modules matching a pattern

kmod list | grep bluetooth

Load all modules for detected hardware

modprobe -a $(cat /proc/modules | awk '{print $1}')

Display module filename path

modinfo -F filename xfs