lsmod(list modules)命令
lsmod command to display the kernel module has been loaded state
1) Syntax: lsmod
2) function:
lsmod command to display the contents of aesthetically / prco / module in which the information content is already loaded kernel modules.
After using the lsmod, the system will display module already exists in the kernel among the content display comprising:
1. Module name
2. Module size (Size)
3. This module is used by another module (Used by)
You can use man to see help information
1 [root@mima ~]# man lsmod
3) added:
Lsmod execution of instructions, lists all modules loaded into the system. The core of the Linux operating system has a modular nature, this should be at the time of compiling the kernel, advised to put all the functions into the core. These functions may be compiled into a separate module, and then are to be loaded when required.
4) Usage
Common usage
[root@mima ~]# lsmod Module Size Used by FM_CPC_DRV 194495 4 autofs4 26513 3 8021q 25349 0
Used with the grep command, such as
[root@mima ~]# lsmod | grep -i ext4 ext4 374902 3 jbd2 93427 1 ext4 mbcache 8193 1 ext4
5) kernel-related commands
lsmod modinfo depmod rmmod inmod modprobe
To view the current system modules that have been loaded by lsmod, you can also uninstall module has been loaded by modprobe to load modules, rmmod.
6) Other common View command
View CPU information: cat / proc / cpuinfo
View card information: cat / proc / pci
View PCI Information: lspci
example: lspci | grep Ethernet NIC Model View
View memory information: cat / proc / meminfo
View USB devices: cat / proc / bus / usb / devices
See keyboard and mouse: cat / proc / bus / input / devices
to view the system hard disk information and usage: fdisk & disk - l & df
view of each device interrupt request (IRQ): cat / proc / interrupts
See system architecture: uname -a
uname -r
uname -m
dmidecode view hardware information, including bios, cpu, memory and other information
dmesg | more to view hardware information
7) "/ proc" files using the file browser to view the contents of the command
File contains system specific information:
Cpuinfo host CPU information
Dma host DMA channel information
Filesystems File System Information
Interrupts host interrupt information
Ioprots host I / O port number information
Meninfo host memory information
Version Linux version information memory (the compiler to compile the kernel version)
You can use: cat / proc / need to see the file name information