查看Linux硬件信息

 http://server.zol.com.cn/240/2400564.html

 

     1、 主板信息

  查看主板的序列号

  dmidecode | grep -i 'serial number'

 

  2,、cpu信息

  #通过/proc文件系统

  1) cat /proc/cpuinfo

  #通过查看开机信息

  2) dmesg | grep -i 'cpu'

  3)dmidecode -t processor

 

  3、 硬盘信息

  #查看分区情况

  fdisk -l

  #查看大小情况

  df -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) 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、 其他Linux硬件信息命令

  .用硬件检测程序kuduz探测新硬件:service kudzu start ( or restart)

  .dmesg (查看所有启动时检测到的硬件信息)

  .lspci (显示外设信息, 如usb,网卡等信息)

  .mpstat

 

  10、 需要手动安装的工具

  lshw,hwinfo

 

posted @ 2017-05-28 13:16  soul.stone  阅读(302)  评论(0编辑  收藏  举报