{"id":7790,"date":"2020-05-24T09:32:55","date_gmt":"2020-05-24T01:32:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7790"},"modified":"2020-05-24T09:32:55","modified_gmt":"2020-05-24T01:32:55","slug":"hwinfo","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/hwinfo","title":{"rendered":"hwinfo\u547d\u4ee4 – \u786c\u4ef6\u4fe1\u606f\u67e5\u8be2"},"content":{"rendered":"\n
hwinfo\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u4e3a\u201cHardware Information\u201d\u3002\u8fd9\u4e2a\u547d\u4ee4\u6781\u5176\u65b9\u4fbf\u548c\u5f3a\u5927\uff0c\u4f7f\u7528\u8be5\u547d\u4ee4\uff0c\u6211\u4eec\u4e0d\u5fc5\u5728\u53bb\u8ba1\u7b97\u673a\u673a\u8eab\u6216\u8005\u8bf4\u660e\u4e66\u4e0a\u4e00\u4e2a\u4e00\u4e2a\u67e5\u627e\u786c\u4ef6\u4fe1\u606f\u4e86\u3002<\/p>\n\n\n\n
hwinfo\u662f\u4e00\u4e2a\u4f7f\u7528\u975e\u5e38\u5e7f\u6cdb\u7684\u786c\u4ef6\u4fe1\u606f\u67e5\u8be2\u547d\u4ee4\uff0c\u7c7b\u4f3c\u4e8elshw\uff0c\u5b83\u540c\u6837\u53ef\u4ee5\u8be6\u7ec6\u6216\u6982\u8981\u5730\u62a5\u544a\u591a\u4e2a\u90e8\u4ef6\u7684\u786c\u4ef6\u4fe1\u606f\uff0c\u4f46\u4e0d\u540c\u7684\u662f\uff0c\u5b83\u6709\u65f6\u53ef\u4ee5\u7ed9\u51fa\u6bd4lshw\u66f4\u591a\u7684\u4fe1\u606f\u3002<\/p>\n\n\n\n
\u5f88\u591a\u68c0\u6d4b\u786c\u4ef6\u4fe1\u606f\u7684\u547d\u4ee4\u884c\u90fd\u9700\u8981\u4f7f\u7528 root \u6743\u9650\u3002\u6240\u4ee5\u5728\u8fd0\u884c\u8be5\u547d\u4ee4\u524d\uff0c\u60a8\u6700\u597d\u5207\u6362\u5230\u7ba1\u7406\u5458\u6743\u9650\u8d26\u6237\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>hwinfo [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793a\u786c\u4ef6\u6240\u6709\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u663e\u793a\u7b80\u8981\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u67e5\u770bcup\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u67e5\u770b\u7f51\u5361\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u67e5\u770b\u786c\u76d8\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u67e5\u770busb\u8bbe\u5907\u4fe1\u606f\uff1a<\/p>\n\n\n\n \u5c06\u8f93\u51fa\u4fe1\u606f\u8bb0\u5f55\u5230\u6587\u4ef6\u4e2d\uff1a<\/p>\n\n\n\n hwinfo\u547d\u4ee4\u7684\u82f1\u6587\u5168\u79f0\u4e3a\u201cHardware Information\u201d\u3002\u8fd9\u4e2a\u547d\u4ee4\u6781\u5176\u65b9\u4fbf\u548c\u5f3a\u5927\uff0c\u4f7f\u7528\u8be5\u547d\u4ee4\uff0c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7790"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7790"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7790\/revisions"}],"predecessor-version":[{"id":7798,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7790\/revisions\/7798"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}--short<\/td> \u663e\u793a\u7b80\u7565\u4fe1\u606f<\/td><\/tr> --log<\/td> \u5c06\u4fe1\u606f\u8f93\u5165\u5230log\u6587\u4ef6\u4e2d<\/td><\/tr> --cpu<\/td> \u663e\u793acpu\u4fe1\u606f<\/td><\/tr> --usb<\/td> \u663e\u793ausb\u8bbe\u5907\u4fe1\u606f<\/td><\/tr> --storage<\/td> \u663e\u793a\u786c\u76d8\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# hwinfo<\/pre>\n\n\n\n
[root@linuxcool ~]# hwinfo --short<\/pre>\n\n\n\n
[root@linuxcool ~]# hwinfo --short --cpu<\/pre>\n\n\n\n
[root@linuxcool ~]# hwinfo --short --netcard<\/pre>\n\n\n\n
[root@linuxcool ~]# hwinfo --short --storage<\/pre>\n\n\n\n
[root@linuxcool ~]# hwinfo --short --usb<\/pre>\n\n\n\n
[root@linuxcool ~]# hwinfo --all --short --log hardware_info.log<\/pre>\n","protected":false},"excerpt":{"rendered":"