lsmod command in Linux with Examples
/proc/modules, showing what kernel modules are currently loaded.
Syntax:
lsmodExample: Run lsmod at the command line to list all active kernel modules.
lsmodOutput:
Output Format: There are three columns in output.
- First, column is used for 'Name' of the module file. Or you can say
Name = Module file name - Module file extension(eg .o or .ko)
- Second, column is used for 'size' of the module in Bytes.
- The third column in output is for 'used by'. It is basically used to display the number of instances of the module which are used.