lsmod
Linux · System · reference only
What it does
Shows the kernel modules that are loaded, with their size and which other modules use them.
Syntax
lsmod
Options and parameters
ModuleFirst column: name of the loaded module.
SizeSecond column: memory the module takes, in bytes.
Used byThird column: usage count and the modules that depend on it.
-hShows help and exits.
-VShows the version and exits.
Usage examples
lsmodLists all loaded modules.
lsmod | grep -i usbLooks for USB-related modules.
lsmod | head -5Shows only the first lines of the table.
lsmod | wc -lCounts the lines of the table, one per module plus the header.
Notes and common mistakes
- It reads its information from /proc/modules.
- To load or remove modules you use modprobe and modprobe -r.