The lsmod
command can be used to list the kernel modules that are currently loaded on a Linux system. To use lsmod
, simply open a terminal and type lsmod
. This will display a list of the currently loaded kernel modules, along with some basic information about each module such as its size and dependencies.
Here is an example of the output you might see when you run lsmod
:
Module Size Used by nls_utf8 16384 1 isofs 40960 1 fuse 90112 3 nls_iso8859_1 16384 1 vfat 20480 1 fat 69632 1 vfat
Each line in the output represents a different kernel module, with the name of the module listed in the first column and some additional information listed in the following columns. The "Size" column indicates the size of the module in memory, while the "Used by" column lists the number of other kernel modules or processes that depend on this module.
You can also use the lsmod
command with various options to customize the output. For example, the -t
option can be used to sort the output by the size of the modules, and the -n
option can be used to display the modules in numeric order rather than alphabetical order. To see a complete list of options available for lsmod
, you can type man lsmod
at the terminal to view the manual page for the command.