{"id":6001,"date":"2022-06-17T01:05:08","date_gmt":"2022-06-16T17:05:08","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=6001"},"modified":"2022-06-17T01:13:37","modified_gmt":"2022-06-16T17:13:37","slug":"linux-list-hardware-information-command","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-list-hardware-information-command.html","title":{"rendered":"Linux\u7cfb\u7edf\u4e0b\u67e5\u770b\u786c\u4ef6\u4fe1\u606f\u547d\u4ee4\u5927\u5168"},"content":{"rendered":"
\u672c\u6587\u7531lrxjmw.cn\u56e2\u961f\u6210\u5458\u5cb3\u56fd\u5e05<\/span>\u6574\u7406\u53d1\u5e03\uff0c\u539f\u6587\u6765\u81ea\uff1aLinux\u516c\u793e<\/a>\u3002<\/p>\n<\/div>\n lscpu\u547d\u4ee4\u80fd\u591f\u67e5\u770b CPU \u548c\u5904\u7406\u5355\u5143\u7684\u4fe1\u606f\u3002\u8be5\u547d\u4ee4\u6ca1\u6709\u4efb\u4f55\u5176\u4ed6\u9009\u9879\u6216\u8005\u522b\u7684\u529f\u80fd\u3002<\/p>\n \u8fd0\u884c\u8be5\u547d\u4ee4\u4f1a\u770b\u5230\u4e0b\u9762\u8f93\u51fa\uff1a<\/p>\n <\/p>\n lspci\u662f\u53e6\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u5217\u51fa\u6240\u6709\u7684 PCI \u603b\u7ebf\uff0c\u8fd8\u6709\u4e0e PCI \u603b\u7ebf\u76f8\u8fde\u7684\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u6bd4\u5982 VGA \u9002\u914d\u5668\u3001\u663e\u5361\u3001\u7f51\u7edc\u9002\u914d\u5668\u3001usb \u7aef\u53e3\u3001SATA \u63a7\u5236\u5668\u7b49\u3002<\/p>\n \u4f60\u53ef\u4ee5\u770b\u5230\u7c7b\u4f3c\u4e0b\u56fe\u7684\u8f93\u51fa\u4fe1\u606f:<\/p>\n <\/p>\n \u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u8fc7\u6ee4\u51fa\u7279\u5b9a\u8bbe\u5907\u7684\u4fe1\u606f\uff1a<\/p>\n \u8fd0\u884c\u4e0a\u9762\u7684\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u7c7b\u4f3c\u4e0b\u56fe\u7684\u5173\u4e8e\u663e\u5361\u7684\u4fe1\u606f: lshw\u662f\u4e00\u4e2a\u901a\u7528\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5217\u51fa\u591a\u79cd\u786c\u4ef6\u5355\u5143\u7684\u8be6\u7ec6\u6216\u8005\u6982\u8981\u7684\u4fe1\u606f\uff0c\u6bd4\u5982 CPU\u3001\u5185\u5b58\u3001usb \u63a7\u5236\u5668\u3001\u786c\u76d8\u7b49\u3002lshw\u80fd\u591f\u4ece\u5404\u4e2a\u201c\/proc\u201d\u6587\u4ef6\u4e2d\u63d0\u53d6\u51fa\u76f8\u5173\u7684\u4fe1\u606f\u3002<\/p>\n \u901a\u8fc7\u8fd0\u884c\u4e0a\u9762\u7684\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u4e0b\u9762\u7684\u4fe1\u606f: \u901a\u8fc7\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u50cf\u786c\u76d8\u548c\u5149\u9a71\u7b49 scsi\/sata \u8bbe\u5907\u7684\u4fe1\u606f\uff1a<\/p>\n \u4f1a\u5f97\u5230\u7c7b\u4f3c\u4e0b\u9762\u7684\u8f93\u51fa:<\/p>\n <\/p>\n lsusb\u547d\u4ee4\u80fd\u591f\u5217\u51fa USB \u63a7\u5236\u5668\u548c\u4e0e USB \u63a7\u5236\u5668\u76f8\u8fde\u7684\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0clsusb\u547d\u4ee4\u53ea\u6253\u5370\u51fa\u6982\u8981\u4fe1\u606f\u3002\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528-v\u53c2\u6570\u6253\u5370\u6bcf\u4e00\u4e2ausb\u7aef\u53e3\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n \u53ef\u4ee5\u770b\u5230\u4e0b\u9762\u8f93\u51fa df\u547d\u4ee4\u80fd\u591f\u5217\u51fa\u4e0d\u540c\u5206\u533a\u7684\u6982\u8981\u4fe1\u606f\u3001\u6302\u8f7d\u70b9\u3001\u5df2\u7528\u7684\u548c\u53ef\u7528\u7684\u7a7a\u95f4\u3002<\/p>\n \u53ef\u4ee5\u5728\u4f7f\u7528df\u547d\u4ee4\u7684\u65f6\u5019\u52a0\u4e0a-H\u53c2\u6570\u3002<\/p>\n <\/p>\n \u901a\u8fc7\u4f7f\u7528free\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u7cfb\u7edf\u4e2d\u4f7f\u7528\u7684\u3001\u95f2\u7f6e\u7684\u548c RAM \u7684\u603b\u4f53\u6570\u91cf\u3002<\/p>\n \u4f1a\u770b\u5230\u4e0b\u9762\u8f93\u51fa\u3002<\/p>\n <\/p>\n hdparm\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u663e\u793a\u50cf\u786c\u76d8\u8fd9\u6837\u7684 sata \u8bbe\u5907\u7684\u4fe1\u606f\u3002<\/p>\n \u53ef\u4ee5\u770b\u5230\u4e0b\u9762\u7684\u8f93\u51fa:<\/p>\n <\/p>\n \u6bcf\u4e2a\u547d\u4ee4\u90fd\u6709\u4e0d\u540c\u7684\u65b9\u5f0f\u6765\u83b7\u53d6\u786c\u4ef6\u7684\u4fe1\u606f\u3002\u5728\u67e5\u770b\u7279\u5b9a\u7684\u786c\u4ef6\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u5f0f\u3002\u4e0a\u9762\u6240\u6709\u7684\u547d\u4ee4\u884c\u5de5\u5177\u5728\u5927\u90e8\u5206\u7684 Linux \u53d1\u884c\u7248\u672c\u4e2d\u90fd\u662f\u53ef\u4ee5\u4f7f\u7528\u7684\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u4ece\u4ed3\u5e93\u4e2d\u83b7\u53d6\u5b89\u88c5\u3002<\/p>\n\n\n
\n \u5bfc\u8bfb<\/td>\n \u6709\u8bb8\u591a\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u67e5\u770b Linux \u7cfb\u7edf\u4e0a\u7684\u786c\u4ef6\u4fe1\u606f\u3002\u6709\u4e9b\u547d\u4ee4\u53ea\u80fd\u591f\u6253\u5370\u51fa\u50cf CPU \u548c\u5185\u5b58\u8fd9\u4e00\u7279\u5b9a\u7684\u786c\u4ef6\u7ec4\u4ef6\u4fe1\u606f\uff0c\u53e6\u5916\u4e00\u4e9b\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u591a\u79cd\u786c\u4ef6\u7ec4\u4ef6\u7684\u4fe1\u606f\u3002
\n\u8fd9\u4e2a\u6559\u7a0b\u53ef\u4ee5\u5e26\u5927\u5bb6\u5feb\u901f\u4e86\u89e3\u4e00\u4e0b\u67e5\u770b\u5404\u79cd\u786c\u4ef6\u8bbe\u5907\u7684\u4fe1\u606f\u548c\u914d\u7f6e\u8be6\u60c5\u7684\u6700\u5e38\u7528\u7684\u547d\u4ee4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\nlscpu\r\n<\/pre>\n
lspci\r\n<\/pre>\n
lspci -v | grep \"VGA\" -A 12\r\n<\/pre>\n
\n<\/p>\nlshw -short\r\n<\/pre>\n
\n<\/p>\nlsscsi\r\n<\/pre>\n
lsusb\r\n<\/pre>\n
\n<\/p>\ndf -H\r\n<\/pre>\n
free -m\r\n<\/pre>\n
sudo hdparm\r\n<\/pre>\n
\n