List currently loaded kernel modules
Use the lsmod command to list currently loaded kernel modules.
Before you begin
- The
kmodpackage is installed.
Procedure
List all currently loaded kernel modules:
$ lsmod
Module Size Used by
fuse 126976 3
uinput 20480 1
xt_CHECKSUM 16384 1
ipt_MASQUERADE 16384 1
xt_conntrack 16384 1
ipt_REJECT 16384 1
nft_counter 16384 16
nf_nat_tftp 16384 0
nf_conntrack_tftp 16384 1 nf_nat_tftp
tun 49152 1
bridge 192512 0
stp 16384 1 bridge
llc 16384 2 bridge,stp
nf_tables_set 32768 5
nft_fib_inet 16384 1
...
In this example:
-
The
Modulecolumn provides the names of currently loaded modules. -
The
Sizecolumn displays the amount of memory per module in KB. -
The
Used bycolumn shows the number, and optionally the names of modules that are dependent on a particular module.