In windows, we can easily obtain computer hardware information. in Linux, what commands can be used to obtain system hardware information, the following describes the Linux hardware information commands: 1. check the serial number of the motherboard ---------------------------------------------- # use the command dmidecode | grep-I & #39
In windows, we can easily obtain computer hardware information. in Linux, what commands can be used to obtain system hardware information, the following describes Linux hardware information commands:
1. motherboard information
View the serial number of the motherboard
--------------------------------------------------
# Use commands
Dmidecode | grep-I 'serial number'
# View board information
Cat/proc/pci
--------------------------------------------------
2. cpu information
--------------------------------------------------
# Use the/proc file system
1) cat/proc/cpuinfo
# View The Boot Information
2) dmesg | grep-I 'CPU'
#
3) dmidecode-t processor
--------------------------------------------------
3. hard disk information
--------------------------------------------------
# View partition information
Fdisk-l
# View the size
Df-h
# View usage
Du-h
#
Hdparm-I/dev/sda
#
Dmesg | grep sda
--------------------------------------------------
4. memory information
--------------------------------------------------
1) cat/proc/meminfo
2) dmesg | grep mem
3) free-m
4) vmstat
5) dmidecode | grep-I mem
--------------------------------------------------
5. Nic information
--------------------------------------------------
1) dmesg | grep-I 'eth'
2) cat/etc/sysconfig/hwconf | grep-I eth
3) lspci | grep-I 'eth'
--------------------------------------------------
6. mouse, keyboard, and USB information
View the keyboard and mouse: cat/proc/bus/input/devices
View USB devices: cat/proc/bus/usb/devices
View interrupt requests of each device (IRQ): cat/proc/interrupts
7. video card information
--------------------------------------------------
1) lspci | grep-I 'vga'
2) dmesg | grep-I 'vga'
--------------------------------------------------
8. sound card information
--------------------------------------------------
1) lspci | grep-I 'vga'
2) dmesg | grep-I 'vga'
--------------------------------------------------
7. Other Linux hardware information commands
Use the hardware detection program kuduz to detect the new hardware: service kudzu start (or restart)
. Dmesg (view all hardware information detected at startup)
. Lspci (display peripheral information, such as usb and NIC)
. Cat/etc/sysconfig/hwconf
. Mpstat
8. tools to be manually installed
Lshw, hwinfo, hal-device-manager
The above are some Linux hardware information commands that can view the hardware information of machines under characters.