美文网首页ubuntu日常
linux查看系统硬件参数的命令

linux查看系统硬件参数的命令

作者: 我只是一个小白木木 | 来源:发表于2018-06-27 16:36 被阅读789次
  • 查看主板型号: sudo dmidecode |grep -A16 "System Information$"
  • 主板的序列号:dmidecode | grep -i 'serial number'

  • 查看系统版本: lsb_release -a
  • Linux系统的内核版本:cat /proc/version



  • 查看CPU(型号):cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
  • CPU详细信息:cat /proc/cpuinfo 或者 dmesg | grep -i 'cpu' 或者 dmidecode -t processor

  • CPU运行模式: getconf LONG_BIT (32\64)

  • 查看cpu个数: grep 'physical id' /proc/cpuinfo | sort -u | wc -l

  • 查看核心数量: grep 'core id' /proc/cpuinfo | sort -u | wc -l

  • 查看线程数: grep 'processor' /proc/cpuinfo | sort -u | wc -l


  • 查看内存总数: cat /proc/meminfo | grep MemTotal
  • 内存参数详细信息:cat /proc/meminfo
  • 查看内存插槽:dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range
  • 查看内存条速率:dmidecode|grep -A16 "Memory Device"|grep 'Speed'
  • 查看最大支持内存:dmidecode|grep -P 'Maximum\s+Capacity'
  • 内存硬件具体信息:dmidecode | grep -A16 "Memory Device"

  • 查看硬盘型号: cat /proc/scsi/scsi

6块300的盘子


显卡信息:lspci |grep -i 'VGA' 或者 dmesg | grep -i 'VGA'

网卡信息:lspci | grep -i 'eth'

PCI信息:lspci

键盘和鼠标:cat /proc/bus/input/devices

各设备的中断请求(IRQ):cat /proc/interrupts

硬件信息,包括bios、cpu、内存等信息:dmidecode

系统配置:/usr/platform/sun4u/sbin/prtdiag –v

硬件汇总信息:dmesg | more

显示外设信息, 如usb,网卡等信息:lspci

已加载的驱动:lsmod 或者 lshw

机器的产品名称及序列号:cat /sys/class/dmi/id/product_*

机器的BIOS信息:cat /sys/class/dmi/id/bios_*

DMA信息:cat /proc/dma

支持的文件系统:cat /proc/filesystems

主机I/O端口号信息:cat /proc/ioports

相关文章

网友评论

    本文标题:linux查看系统硬件参数的命令

    本文链接:https://www.haomeiwen.com/subject/tcqiyftx.html