最近经常要测试新硬件,了解硬件的具体型号和参数就非常重要,过去经常透过lspci, dmidecode, dmesg, ethtool, lshal, megacli等命令和各种/proc信息来了解,需要对这些工具很熟悉, 貌似比较不方便和准确。
今天看到某同学用的hwconfig感觉信息很专业,推荐给大家。这里可以下载, 感谢微博@frostwatcher同学.
hwconfig透过收集上面提到的各种信息, 然后根据wiki或者厂家公布的设备识别码, 进一步加工,给用户一个直观的信息.
不废话,效果如下:
usage: hwconfig [-dhnv] [-t timeout] [-r file ] [-x file ] [-o file ] |
-d show debugging information |
-n don't break output lines |
-o write output to file (- for stdout) |
-r write raw source to file (- for stdout) |
-t abort after timeout seconds |
-x write xml to file (- for stdout) |