Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Lsmod command

From NetworkCommands


Image:Tux_64x64.png

A command line program available on most Linux platforms; used to display a list of loaded modules.

Contents

Image:Vm-power-on-medium.png Usage Syntax

lsmod

Image:Vm-power-on-medium.png Usage Examples

lsmod

Image:accessories-text-editor-v2-medium.png Usage Notes

The format is name, size, use count, list of referring 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

Image:accessories-text-editor-v2-medium.png Linux Usage Notes

With most Linux or Unix commands;

  • Brief help can be displayed using the option/keyword: -h or --help, for example: chmod --help
  • A full command manual can be displayed using the man command followed by the command name, for example: man chmod
  • Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
  • Version information can be display using the option/keyword: -v or --version, for example: chmod --version


Image:utilities-terminal-medium.png Typical Output

Module                  Size  Used by    Tainted: P
subdomain              75108   1
commoncap               4824   0  [subdomain]
nfs                    93372   0  (unused)
lockd                  59568   0  [nfs]
sunrpc                 86588   0  [nfs lockd]
smbfs                  44464   0  (unused)
lasthop                24832   0  (unused)
vnic                   24308   4
nvram                   7596   0  (unused)
i2c-dev                 4672   2
i2c-i801                5880   2
ipv6                  274208  -1  (autoclean)
keybdev                 2976   0  (unused)
mousedev                5720   0  (unused)
hid                    21700   0  (unused)
input                   6048   0  [keybdev mousedev hid]

Image:icemon-medium.png Related Articles

Information on other Linux commands Image:Tux-small.png

Information on Cisco commands Image:Cisco-logo-small.png

Information on Vyatta commands Image:Vyatta-logo-small.png

Information on Extreme commands Image:Extreme-logo-small.png

Information on F5 BigIP commands Image:F5-logo-small.png

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 1 September 2008, at 14:20. - This page has been accessed 46 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki