lsmod 命令
lsmod(英文全拼:list modules)命令用于显示已载入系统的模块。
执行 lsmod 指令,会列出所有已载入系统的模块。操作系统的核心具有模块化的特性,因此在编译核心时,务须把全部的功能都放入核心。您可以将这些功能编译成一个个单独的模块,待需要时再分别载入。
语法
lsmod
实例
显示模块信息
# lsmod
Module Size Used by
tcp_diag 12591 0
inet_diag 18949 1 tcp_diag
veth 13410 0
xt_nat 12681 1
ipt_MASQUERADE 12678 2
nf_nat_masquerade_ipv4 13412 1 ipt_MASQUERADE
nf_conntrack_netlink 40449 0
nfnetlink 14696 2 nf_conntrack_netlink
iptable_nat 12875 1
nf_conntrack_ipv4 19108 2
nf_defrag_ipv4 12729 1 nf_conntrack_ipv4
nf_nat_ipv4 14115 1 iptable_nat
xt_addrtype 12676 2
iptable_filter 12810 1
xt_conntrack 12760 1
nf_nat 26147 3 nf_nat_ipv4,xt_nat,nf_nat_masquerade_ipv4
nf_conntrack 111302 6 nf_nat,nf_nat_ipv4,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_netlink,nf_conntrack_ipv4
br_netfilter 22248 0
bridge 107106 1 br_netfilter
stp 12976 1 bridge
llc 14552 2 stp,bridge
rpcsec_gss_krb5 31477 0
nfsv4 546174 0
dns_resolver 13140 1 nfsv4
nfs 256718 1 nfsv4
fscache 64891 2 nfs,nfsv4
overlay 47399 2
vmw_vsock_vmci_transport 30577 0
vsock 34855 1 vmw_vsock_vmci_transport
intel_powerclamp 14419 0
coretemp 13444 0
crc32_pclmul 13113 0
ghash_clmulni_intel 13259 0
aesni_intel 69884 0
lrw 13286 1 aesni_intel
gf128mul 14951 1 lrw
glue_helper 13990 1 aesni_intel
ablk_helper 13597 1 aesni_intel
cryptd 20359 3 ghash_clmulni_intel,aesni_intel,ablk_helper
ppdev 17671 0
vmw_balloon 18190 0
pcspkr 12718 0
sg 40721 0
floppy 69417 0
parport_pc 28165 0
parport 42348 2 ppdev,parport_pc
i2c_piix4 22106 0
shpchp 37032 0
vmw_vmci 67106 1 vmw_vsock_vmci_transport
nfsd 333626 1
auth_rpcgss 59323 2 nfsd,rpcsec_gss_krb5
nfs_acl 12837 1 nfsd
lockd 93573 2 nfs,nfsd
grace 13515 2 nfsd,lockd
sunrpc 334343 10 nfs,nfsd,rpcsec_gss_krb5,auth_rpcgss,lockd,nfsv4,nfs_acl
ip_tables 27115 2 iptable_filter,iptable_nat
xfs 985426 3
libcrc32c 12644 1 xfs
sr_mod 22416 0
cdrom 42556 1 sr_mod
ata_generic 12910 0
pata_acpi 13038 0
sd_mod 46322 3
crc_t10dif 12714 1 sd_mod
crct10dif_generic 12647 0
crct10dif_pclmul 14289 1
crct10dif_common 12595 3 crct10dif_pclmul,crct10dif_generic,crc_t10dif
crc32c_intel 22079 1
vmwgfx 235043 1
serio_raw 13462 0
drm_kms_helper 146456 1 vmwgfx
syscopyarea 12529 1 drm_kms_helper
sysfillrect 12701 1 drm_kms_helper
sysimgblt 12640 1 drm_kms_helper
fb_sys_fops 12703 1 drm_kms_helper
ttm 93908 1 vmwgfx
ata_piix 35038 0
drm 372540 4 ttm,drm_kms_helper,vmwgfx
e1000 137544 0
mptspi 22542 3
scsi_transport_spi 30732 1 mptspi
mptscsih 40150 1 mptspi
mptbase 105960 2 mptspi,mptscsih
i2c_core 40756 3 drm,i2c_piix4,drm_kms_helper
libata 247095 3 pata_acpi,ata_generic,ata_piix
fjes 32197 0
dm_mirror 22135 0
dm_region_hash 20862 1 dm_mirror
dm_log 18411 2 dm_region_hash,dm_mirror
dm_mod 114430 11 dm_log,dm_mirror
sbd_fun_linux 1628943 0
disksbd_linux 1398933 3 sbd_fun_linux