查看linux硬件配置方式汇总

1. 主板信息 - 查看主板的序列号
#使用命令
dmidecode | grep -i ‘serial number’

#查看板卡信息
cat /proc/pci

2. cpu信息
#通过/proc文件系统
cat /proc/cpuinfo

#通过查看开机信息
dmesg | grep -i ‘cpu’

#
dmidecode -t processor

3. 硬盘信息
#查看分区情况fdisk -l#查看大小情况df -h#查看使用情况du -h#hdparm -I /dev/sda#dmesg | grep sda

4. 内存信息cat /proc/meminfo
dmesg | grep mem
free -m
vmstat
dmidecode | grep -i mem

5. 网卡信息
dmesg | grep -i ‘eth’
cat /etc/sysconfig/hwconf | grep -i eth
lspci | grep -i ‘eth’

6. 鼠标键盘和USB信息
查看键盘和鼠标cat /proc/bus/input/devices
查看USB设备cat /proc/bus/usb/devices
查看各设备的中断请求(IRQ)cat /proc/interrupts

7. 显卡信息
lspci |grep -i ‘VGA’
dmesg | grep -i ‘VGA’

8. 声卡信息
lspci | grep -i ‘Audio‘
dmesg | grep -i ‘Audio‘

9. 其他命令
#用硬件检测程序kuduz探测新硬件service kudzu start ( or restart)

你可能感兴趣的:(linux,硬件)