$linuxjunkies
>

lsmod(8)

Display the status of modules in the Linux kernel.

UbuntuDebianFedoraArch

Synopsis

lsmod

Description

lsmod shows which loadable kernel modules are currently loaded. It reads from /proc/modules and displays each module's name, memory size in kilobytes, number of instances loaded, and any dependent modules.

This command is useful for troubleshooting hardware issues, checking driver status, and understanding what kernel extensions are active on your system.

Examples

List all currently loaded kernel modules with their sizes and usage counts.

lsmod

Check if NVIDIA graphics drivers are loaded.

lsmod | grep nvidia

Show the first 20 loaded modules.

lsmod | head -20

Display all USB and HID-related modules currently in use.

lsmod | grep -E '^(usb|hid)'

Count the total number of loaded modules.

lsmod | wc -l

Show the 10 largest kernel modules by memory usage.

lsmod | sort -k2 -rn | head -10

Related commands