基于Linux系统中查看硬件等信息的方法详解

基于Linux系统中查看硬件等信息的方法详解,第1张

基于Linux系统中查看硬件等信息的方法详解 本文介绍下,linux下查看硬件信息的命令与方法,包括主板序列号、cpu信息、内存信息、硬盘信息、网卡信息等。
1,主板信息.查看主板的序列号  
#使用命令
dmidecode | grep -i 'serial number'
#查看板卡信息
cat /proc/pci 
2,cpu信息
#通过/proc文件系统
1) cat /proc/cpuinfo
#通过查看开机信息
2) dmesg | grep -i 'cpu'
#
3)dmidecode -t processor
3,在linux系统中查看硬盘信息,常用的命令为fdisk,df,du,hdparm,dmesg。
#查看分区情况
fdisk -l
#查看大小情况
df -h
#查看使用情况
du -h
#
hdparm -I /dev/sda
#
dmesg | grep sda
4,内存信息
1) cat /proc/meminfo
2) dmesg | grep mem
3) free -m
4) vmstat
5) dmidecode | grep -i mem
5,网卡信息
1) dmesg | grep -i 'eth'
2) cat /etc/sysconfig/hwconf | grep -i eth
3) lspci | grep -i 'eth'
6,鼠标键盘和USB信息
查看键盘和鼠标:cat /proc/bus/input/devices
查看USB设备:cat /proc/bus/usb/devices
查看各设备的中断请求(IRQ):cat /proc/interrupts
7,显卡信息
1)lspci |grep -i 'VGA'
2)dmesg | grep -i 'VGA'
8,声卡信息
1)lspci |grep -i 'VGA'
2)dmesg | grep -i 'VGA'
9,其他命令
.用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart)
.dmesg (查看所有启动时检测到的硬件信息)
.lspci (显示外设信息,如usb,网卡等信息)
.cat /etc/sysconfig/hwconf
.mpstat
10,需要手动安装的工具
lshw,hwinfo,hal-device-manager

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/897455.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-15
下一篇 2022-05-15

发表评论

登录后才能评论

评论列表(0条)

保存