Linux Command — lsmod

Display basic information about all currently loaded modules

lsmod output

The Linux command lsmod shows information about all loaded modules. The information displayed is identical to that available from /proc/modules.

If the module controls its own unloading via a can_unload routine then the user count displayed by lsmod is always -1, irrespective of the real use count. 

This command reveals three columns of information: The module name, the size of the module as loaded in memory, the number of programs using it, and a comma-separated list of prograsm using the module.

Options for 'Ismod'

This command accepts two flags:

  • -h--help: Display a summary of options and immediately exit.
  • -V--version: Display the version of lsmod and immediately exit.