Main Menu

Search

LINUX: How To List All the Modules In Linux?

Below are couple of ways to list all the modules in Linux Hosts.

1. lsmod command.
Below lsmod command can be executed.


lsmod

Below is example snippet of lsmod command.


Module                  Size  Used by
bridge                114688  0
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
ovmapi                 20480  1 [permanent]
ipmi_devintf           20480  0
ipmi_msghandler        49152  1 ipmi_devintf
rpcsec_gss_krb5        36864  0
auth_rpcgss            61440  1 rpcsec_gss_krb5
nfsv4                 524288  1
nfs                   282624  3 nfsv4
fscache                65536  2 nfsv4,nfs
lockd                  94208  1 nfs
sunrpc                344064  12 rpcsec_gss_krb5,auth_rpcgss,nfsv4,nfs,lockd

2. /proc/modules File


Below command can be executed to list content of /proc/modules File



cat /proc/modules

Below is example snippet of above command.


# more /proc/modules
bridge 114688 0 - Live 0xffffffffa0529000
stp 16384 1 bridge, Live 0xffffffffa0449000
llc 16384 2 bridge,stp, Live 0xffffffffa02ba000
ovmapi 20480 1 [permanent], Live 0xffffffffa0388000
ipmi_devintf 20480 0 - Live 0xffffffffa0339000
ipmi_msghandler 49152 1 ipmi_devintf, Live 0xffffffffa051c000
rpcsec_gss_krb5 36864 0 - Live 0xffffffffa0494000
auth_rpcgss 61440 1 rpcsec_gss_krb5, Live 0xffffffffa0484000
nfsv4 524288 1 - Live 0xffffffffa05d4000
nfs 282624 3 nfsv4, Live 0xffffffffa04d6000
fscache 65536 2 nfsv4,nfs, Live 0xffffffffa04bc000
lockd 94208 1 nfs, Live 0xffffffffa04a4000
sunrpc 344064 12 rpcsec_gss_krb5,auth_rpcgss,nfsv4,nfs,lockd, Live 0xffffffffa03

Products to which Article Applies

All Linux Environments

Additional References

https://www.cyberciti.biz/faq/howto-display-list-of-modules-or-device-drivers-in-the-linux-kernel/





tarun boyella

No comments:

Post a Comment