lsmod命令
来源:原创 更新时间:2019-08-22 11:46:13 作者:管理员 浏览:2401
- 命令描述
- 命令语法
- 命令实例
实例1:
显示系统中加载的模块
[root@guilin ~]# lsmod Module Size Used by vmw_vsock_vmci_transport 30577 1 vsock 36452 2 vmw_vsock_vmci_transport iosf_mbi 14990 0 crc32_pclmul 13133 0 ppdev 17671 0 ghash_clmulni_intel 13273 0 aesni_intel 189414 0 lrw 13286 1 aesni_intel gf128mul 15139 1 lrw glue_helper 13990 1 aesni_intel ablk_helper 13597 1 aesni_intel cryptd 20511 3 ghash_clmulni_intel,aesni_intel,ablk_helper vmw_balloon 18190 0 sg 40721 0 joydev 17389 0 pcspkr 12718 0 nfit 50616 0 libnvdimm 142080 1 nfit vmw_vmci 67081 1 vmw_vsock_vmci_transport i2c_piix4 22401 0 parport_pc 28205 0 parport 46395 2 ppdev,parport_pc shpchp 37047 0 ip_tables 27126 0 xfs 1003971 3 libcrc32c 12644 1 xfs sd_mod 46322 3 crc_t10dif 12912 1 sd_mod crct10dif_generic 12647 0 sr_mod 22416 0 cdrom 42556 1 sr_mod ata_generic 12923 0 pata_acpi 13053 0 vmwgfx 271734 1 drm_kms_helper 176920 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 99555 1 vmwgfx crct10dif_pclmul 14307 1 crct10dif_common 12595 3 crct10dif_pclmul,crct10dif_generic,crc_t10dif crc32c_intel 22094 1 ata_piix 35052 0 drm 397988 4 ttm,drm_kms_helper,vmwgfx libata 242992 3 pata_acpi,ata_generic,ata_piix mptspi 22628 2 scsi_transport_spi 30732 1 mptspi mptscsih 40150 1 mptspi e1000 137574 0 serio_raw 13434 0 mptbase 106036 2 mptspi,mptscsih i2c_core 63151 3 drm,i2c_piix4,drm_kms_helper dm_mirror 22289 0 dm_region_hash 20813 1 dm_mirror dm_log 18411 2 dm_region_hash,dm_mirror dm_mod 123941 11 dm_log,dm_mirror
第1列:表示模块的名称。
第2列:表示模块的大小。
第3列:表示依赖模块的个数。
第4列:表示依赖模块的内容。
通常在使用lsmod命令时,都会采用类似lsmod | grep -i ext3这样的命令来查询当前系统是否加载了某些模块。