lsmod command in Linux with Examples
lsmod command is used to display the status of modules in the Linux kernel. It results in a list of loaded modules. lsmod is a trivial program which nicely formats the contents of the /proc/modules
, showing what kernel modules are currently loaded.
Syntax:
lsmod
Example: Run lsmod at the command line to list all active kernel modules.
lsmod
Output:
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.
Recommended Posts:
- look command in Linux with Examples
- apt-get command in Linux with Examples
- cmp Command in Linux with examples
- ssh command in Linux with Examples
- mv command in Linux with examples
- if command in linux with examples
- apt command in linux with examples
- for command in Linux with Examples
- df command in Linux with Examples
- du command in Linux with examples
- ed command in Linux with examples
- cp command in Linux with examples
- bg command in Linux with Examples
- col command in Linux with Examples
- cut command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.