Based on the Linux system to view the hardware and other information method

  • 2020-05-06 12:10:50
  • OfStack

This paper introduces the command and method to view hardware information under linux, including motherboard serial number, cpu information, memory information, hard disk information, network card information.
1, motherboard information. See the motherboard serial number
# USES the command
dmidecode | grep -i 'serial number'
View board card information
cat/proc/pci
2, cpu information
# via /proc file system
1) cat /proc/cpuinfo
By viewing the boot information
2) dmesg | grep -i 'cpu'
#
3)dmidecode -t processor
3, in the linux system to view the hard disk information, the common command is fdisk, df, du, hdparm, dmesg.
# view the partition situation
fdisk -l
# view the size situation
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, network card information
1) dmesg | grep -i 'eth'
2) cat /etc/sysconfig/hwconf | grep -i eth
3) lspci | grep -i 'eth'
6, mouse and keyboard and USB information
check the keyboard and mouse: cat proc/bus/input/devices
See USB equipment: cat proc/bus/usb/devices
View interrupt requests for each device (IRQ):cat /proc/interrupts
7, graphics 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'
9, other commands
. Detect new hardware with hardware detection program kuduz: service kudzu start (or restart)
.dmesg (view all hardware information detected at startup)
.lspci (display peripheral information, such as usb, network card, etc.)
.cat /etc/sysconfig/hwconf
.mpstat
10, a manually installed tool called
lshw,hwinfo,hal-device-manager

Related articles: