Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1351340
  • 博文数量: 245
  • 博客积分: 10021
  • 博客等级: 上将
  • 技术积分: 3094
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-12 14:51
文章存档

2011年(2)

2009年(152)

2008年(91)

我的朋友

分类:

2008-05-15 07:44:04


作者: pplicat  发布日期: 2008-3-18    查看数: 121   出自:
dmidecode is a tool for dumping a computer''''s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system''''s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable.

dmidecode可以全面的显示bios、cpu、内存等硬件信息。

查看主板的序列号

dmidecode | grep "Serial Number"

显示物理内存块数

dmidecode |grep -A16 "Memory Device$"

显示CPU信息

dmidecode |grep -A42 "Processor"|more

另外:

grep -An (A和n之间也可以有空格) 输出包含指定字符串的行及该行后续的n行

/usr/sbin/dmidecode | grep "Serial Number"可以读出计算机的标示号,当然这只对正规品牌的机器有效,如DELL、HP之类,取出的值和机器上贴的值是对应的,而类似清华同方之流的兼容机,基本上读不出任何有意义的数据。
阅读(787) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~