日期:2014-05-16  浏览次数:20727 次

Linux下调查硬件信息
Linux下CPU信息的表示方法
# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU           E5310  @ 1.60GHz
stepping        : 11
cpu MHz         : 1595.930
cache size      : 4096 KB
physical id     : 0
...


内存信息的显示方法
# cat /proc/meminfo
MemTotal:     16432240 kB
MemFree:         89660 kB
Buffers:         94888 kB
Cached:       15091084 kB
SwapCached:          0 kB
Active:       14288032 kB
Inactive:      1231564 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:     16432240 kB
LowFree:         89660 kB
SwapTotal:    24575992 kB
SwapFree:     24575840 kB
...


硬盘,光驱型号的调查方法
# cat /proc/ide/hda/model
IC35L090AVV207-0
# cat /proc/ide/hdc/model
TSSTcorpDVD-ROM TS-H352C


SCSI、SATA硬盘的话用下边的命令。(RAID)
# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST3500630NS      Rev: n/a
  Type:   Direct-Access                    ANSI SCSI revision: 05


显卡信息
# lspci |grep VGA
0d:0d.0 VGA compatible controller: ATI Technologies Inc ES1000 (rev 02)


dmidecode可以查看所有的硬件信息。

【参考】
http://hi.baidu.com/brucexuyg/blog/item/5117ab54cfefb458564e00ba.html