{"id":160838,"date":"2019-10-28T09:00:19","date_gmt":"2019-10-28T01:00:19","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=160838"},"modified":"2019-10-14T14:57:04","modified_gmt":"2019-10-14T06:57:04","slug":"linux-gui","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-gui.html","title":{"rendered":"\u5982\u4f55\u901a\u8fc7\u547d\u4ee4\u884c\u83b7\u53d6\u8ba1\u7b97\u673a\u786c\u4ef6\u8be6\u7ec6\u4fe1\u606f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f60\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u7684\u539f\u56e0\u9700\u8981\u67e5\u6e05\u8ba1\u7b97\u673a\u786c\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u4f60\u9700\u8981\u4fee\u590d\u67d0\u4e9b\u95ee\u9898\u5e76\u5728\u8bba\u575b\u4e0a\u53d1\u51fa\u8bf7\u6c42\uff0c\u4eba\u4eec\u53ef\u80fd\u4f1a\u7acb\u5373\u8be2\u95ee\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u4f53\u7684\u4fe1\u606f\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4f60\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u7684\u539f\u56e0\u9700\u8981\u67e5\u6e05\u8ba1\u7b97\u673a\u786c\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u4f60\u9700\u8981\u4fee\u590d\u67d0\u4e9b\u95ee\u9898\u5e76\u5728\u8bba\u575b\u4e0a\u53d1\u51fa\u8bf7\u6c42\uff0c\u4eba\u4eec\u53ef\u80fd\u4f1a\u7acb\u5373\u8be2\u95ee\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u4f53\u7684\u4fe1\u606f\u3002\u6216\u8005\u5f53\u4f60\u60f3\u8981\u5347\u7ea7\u8ba1\u7b97\u673a\u914d\u7f6e\u65f6\uff0c\u4f60\u9700\u8981\u77e5\u9053\u73b0\u6709\u7684\u786c\u4ef6\u578b\u53f7\u548c\u80fd\u591f\u5347\u7ea7\u7684\u578b\u53f7\u3002\u8fd9\u4e9b\u90fd\u9700\u8981\u67e5\u8be2\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u4f53\u89c4\u683c\u4fe1\u606f\u3002<\/p>\n

\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6807\u51c6\u7684 Linux GUI \u7a0b\u5e8f\u4e4b\u4e00:<\/p>\n

    \n
  • i-nex\u00a0\u6536\u96c6\u786c\u4ef6\u4fe1\u606f\uff0c\u5e76\u4e14\u7c7b\u4f3c\u4e8e Windows \u4e0b\u6d41\u884c\u7684\u00a0CPU-Z\u00a0\u7684\u663e\u793a\u3002<\/li>\n
  • HardInfo\u00a0\u663e\u793a\u786c\u4ef6\u5177\u4f53\u4fe1\u606f\uff0c\u751a\u81f3\u5305\u62ec\u4e00\u7ec4\u516b\u4e2a\u7684\u6d41\u884c\u7684\u6027\u80fd\u57fa\u51c6\u7a0b\u5e8f\uff0c\u4f60\u53ef\u4ee5\u7528\u5b83\u4eec\u8bc4\u4f30\u4f60\u7684\u7cfb\u7edf\u6027\u80fd\u3002<\/li>\n
  • KInfoCenter\u00a0\u548c\u00a0Lshw\u00a0\u4e5f\u80fd\u591f\u663e\u793a\u786c\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ece\u8bb8\u591a\u8f6f\u4ef6\u4ed3\u5e93\u4e2d\u83b7\u53d6\u3002<\/li>\n<\/ul>\n

    \u6216\u8005\uff0c\u4f60\u4e5f\u53ef\u4ee5\u62c6\u5f00\u8ba1\u7b97\u673a\u673a\u7bb1\u53bb\u67e5\u770b\u786c\u76d8\u3001\u5185\u5b58\u548c\u5176\u4ed6\u8bbe\u5907\u4e0a\u7684\u6807\u7b7e\u4fe1\u606f\u3002\u6216\u8005\u4f60\u53ef\u4ee5\u5728\u7cfb\u7edf\u542f\u52a8\u65f6\uff0c\u6309\u4e0b\u76f8\u5e94\u7684\u6309\u952e\u8fdb\u5165 UEFI \u548c BIOS \u754c\u9762\u83b7\u5f97\u4fe1\u606f\u3002\u8fd9\u4e24\u79cd\u65b9\u5f0f\u90fd\u4f1a\u5411\u4f60\u663e\u793a\u786c\u4ef6\u4fe1\u606f\u4f46\u7701\u7565\u8f6f\u4ef6\u4fe1\u606f\u3002<\/p>\n

    \u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u83b7\u53d6\u786c\u4ef6\u4fe1\u606f\u3002\u7b49\u4e00\u4e0b\u2026 \u8fd9\u542c\u8d77\u6765\u6709\u4e9b\u56f0\u96be\u3002\u4e3a\u4ec0\u4e48\u4f60\u4f1a\u8981\u8fd9\u6837\u505a\uff1f<\/p>\n

    \u6709\u65f6\u5019\u901a\u8fc7\u4f7f\u7528\u4e00\u6761\u9488\u5bf9\u6027\u5f3a\u7684\u547d\u4ee4\u53ef\u4ee5\u5f88\u8f7b\u677e\u7684\u627e\u5230\u7279\u5b9a\u4fe1\u606f\u3002\u4e5f\u53ef\u80fd\u4f60\u6ca1\u6709\u53ef\u7528\u7684 GUI \u7a0b\u5e8f\u6216\u8005\u53ea\u662f\u4e0d\u60f3\u5b89\u88c5\u8fd9\u6837\u7684\u7a0b\u5e8f\u3002<\/p>\n

    \u4f7f\u7528\u547d\u4ee4\u884c\u7684\u4e3b\u8981\u539f\u56e0\u53ef\u80fd\u662f\u7f16\u5199\u811a\u672c\u3002\u65e0\u8bba\u4f60\u662f\u4f7f\u7528 Linux shell \u8fd8\u662f\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u6765\u7f16\u5199\u811a\u672c\u901a\u5e38\u90fd\u9700\u8981\u4f7f\u7528\u547d\u4ee4\u884c\u3002<\/p>\n

    \u5f88\u591a\u68c0\u6d4b\u786c\u4ef6\u4fe1\u606f\u7684\u547d\u4ee4\u884c\u90fd\u9700\u8981\u4f7f\u7528 root \u6743\u9650\u3002\u6240\u4ee5\u8981\u4e48\u5207\u6362\u5230 root \u7528\u6237\uff0c\u8981\u4e48\u4f7f\u7528 sudo\u00a0\u5728\u666e\u901a\u7528\u6237\u72b6\u6001\u4e0b\u53d1\u51fa\u547d\u4ee4\uff1a<\/p>\n

    sudo <the_line_command><\/pre>\n

    \u5e76\u6309\u63d0\u793a\u8f93\u5165\u4f60\u7684\u5bc6\u7801\u3002<\/p>\n

    \u8fd9\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u4e86\u5f88\u591a\u7528\u4e8e\u53d1\u73b0\u7cfb\u7edf\u4fe1\u606f\u7684\u6709\u7528\u547d\u4ee4\u3002\u6587\u7ae0\u6700\u540e\u7684\u5feb\u901f\u67e5\u8be2\u8868\u5bf9\u5b83\u4eec\u4f5c\u51fa\u4e86\u603b\u7ed3\u3002<\/p>\n

    \u786c\u4ef6\u6982\u8ff0<\/strong><\/div>\n

    \u4e0b\u9762\u51e0\u6761\u547d\u4ee4\u53ef\u4ee5\u5168\u9762\u6982\u8ff0\u8ba1\u7b97\u673a\u786c\u4ef6\u4fe1\u606f\u3002<\/p>\n

    inxi\u00a0\u547d\u4ee4\u80fd\u591f\u5217\u51fa\u5305\u62ec CPU\u3001\u56fe\u5f62\u3001\u97f3\u9891\u3001\u7f51\u7edc\u3001\u9a71\u52a8\u3001\u5206\u533a\u3001\u4f20\u611f\u5668\u7b49\u8be6\u7ec6\u4fe1\u606f\u3002\u5f53\u8bba\u575b\u91cc\u7684\u4eba\u5c1d\u8bd5\u5e2e\u52a9\u5176\u4ed6\u4eba\u89e3\u51b3\u95ee\u9898\u7684\u65f6\u5019\uff0c\u4ed6\u4eec\u5e38\u5e38\u8be2\u95ee\u6b64\u547d\u4ee4\u7684\u8f93\u51fa\u3002\u8fd9\u662f\u89e3\u51b3\u95ee\u9898\u7684\u6807\u51c6\u8bca\u65ad\u7a0b\u5e8f\uff1a<\/p>\n

    inxi -Fxz\r\n<\/pre>\n

    -F\u00a0\u53c2\u6570\u610f\u5473\u7740\u4f60\u5c06\u5f97\u5230\u5b8c\u6574\u7684\u8f93\u51fa\uff0cx\u00a0\u589e\u52a0\u7ec6\u8282\u4fe1\u606f\uff0cz\u00a0\u53c2\u6570\u9690\u85cf\u50cf MAC \u548c IP \u7b49\u79c1\u4eba\u8eab\u4efd\u4fe1\u606f\u3002
    \nhwinfo\u00a0\u548c\u00a0lshw\u00a0\u547d\u4ee4\u4ee5\u4e0d\u540c\u7684\u683c\u5f0f\u663e\u793a\u5927\u91cf\u76f8\u540c\u7684\u4fe1\u606f\uff1a<\/p>\n

    hwinfo --short\r\n<\/pre>\n

    \u8fd9\u4e24\u6761\u547d\u4ee4\u7684\u957f\u683c\u5f0f\u8f93\u51fa\u975e\u5e38\u8be6\u7ec6\uff0c\u4f46\u4e5f\u6709\u70b9\u96be\u4ee5\u9605\u8bfb\uff1a<\/p>\n

    hwinfo<\/pre>\n
    CPU \u8be6\u7ec6\u4fe1\u606f<\/strong><\/div>\n

    \u901a\u8fc7\u547d\u4ee4\u4f60\u53ef\u4ee5\u4e86\u89e3\u5173\u4e8e\u4f60\u7684 CPU \u7684\u4efb\u4f55\u4fe1\u606f\u3002\u4f7f\u7528\u00a0lscpu\u00a0\u547d\u4ee4\u6216\u4e0e\u5b83\u76f8\u8fd1\u7684\u00a0lshw\u00a0\u547d\u4ee4\u67e5\u770b CPU \u7684\u8be6\u7ec6\u4fe1\u606f\uff1a
    \n\u5728\u8fd9\u4e24\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u8f93\u51fa\u7684\u6700\u540e\u51e0\u884c\u90fd\u5217\u51fa\u4e86\u6240\u6709 CPU \u7684\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u67e5\u770b\u4f60\u7684\u5904\u7406\u5668\u662f\u5426\u652f\u6301\u7279\u5b9a\u7684\u529f\u80fd\u3002
    \n\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\u7684\u65f6\u5019\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u00a0grep\u00a0\u547d\u4ee4\u8fc7\u6ee4\u590d\u6742\u7684\u4fe1\u606f\uff0c\u5e76\u7f29\u5c0f\u6240\u9700\u4fe1\u606f\u8303\u56f4\u3002\u4f8b\u5982\uff0c\u53ea\u67e5\u770b CPU \u54c1\u724c\u548c\u578b\u53f7:<\/p>\n

    lshw -C cpu | grep -i product<\/pre>\n

    \u4ec5\u67e5\u770b CPU \u7684\u901f\u5ea6\uff08\u5146\u8d6b\u5179\uff09:<\/p>\n

    lscpu | grep -i mhz<\/pre>\n

    \u6216\u5176\u00a0BogoMips\u00a0\u989d\u5b9a\u529f\u7387:<\/p>\n

    lscpu | grep -i bogo<\/pre>\n

    grep\u00a0\u547d\u4ee4\u7684\u00a0-i\u00a0\u53c2\u6570\u4ee3\u8868\u641c\u7d22\u7ed3\u679c\u5ffd\u7565\u5927\u5c0f\u5199\u3002<\/p>\n

    \u5185\u5b58<\/strong><\/div>\n

    Linux \u547d\u4ee4\u884c\u4f7f\u4f60\u80fd\u591f\u6536\u96c6\u5173\u4e8e\u4f60\u7684\u8ba1\u7b97\u673a\u5185\u5b58\u7684\u6240\u6709\u53ef\u80fd\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f60\u751a\u81f3\u53ef\u4ee5\u4e0d\u62c6\u5f00\u8ba1\u7b97\u673a\u673a\u7bb1\u5c31\u80fd\u786e\u5b9a\u662f\u5426\u53ef\u4ee5\u4e3a\u8ba1\u7b97\u673a\u6dfb\u52a0\u989d\u5916\u7684\u5185\u5b58\u6761\u3002<\/p>\n

    \u4f7f\u7528\u00a0dmidecode\u00a0\u547d\u4ee4\u5217\u51fa\u6bcf\u6839\u5185\u5b58\u6761\u548c\u5176\u5bb9\u91cf\uff1a<\/p>\n

    dmidecode -t memory | grep -i size\r\n<\/pre>\n

    \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6\u7cfb\u7edf\u5185\u5b58\u66f4\u591a\u7684\u4fe1\u606f\uff0c\u5305\u62ec\u7c7b\u578b\u3001\u5bb9\u91cf\u3001\u901f\u5ea6\u548c\u7535\u538b\uff1a<\/p>\n

    lshw -short -C memory<\/pre>\n

    \u4f60\u80af\u5b9a\u60f3\u77e5\u9053\u7684\u4e00\u4ef6\u4e8b\u662f\u4f60\u7684\u8ba1\u7b97\u673a\u53ef\u4ee5\u5b89\u88c5\u7684\u6700\u5927\u5185\u5b58\uff1a<\/p>\n

    dmidecode -t memory | grep -i max<\/pre>\n

    \u73b0\u5728\u68c0\u67e5\u4e00\u4e0b\u8ba1\u7b97\u673a\u662f\u5426\u6709\u7a7a\u95f2\u7684\u63d2\u69fd\u53ef\u4ee5\u63d2\u5165\u989d\u5916\u7684\u5185\u5b58\u6761\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u547d\u4ee4\u5728\u4e0d\u6253\u5f00\u8ba1\u7b97\u673a\u673a\u7bb1\u7684\u60c5\u51b5\u4e0b\u5c31\u505a\u5230\uff1a<\/p>\n

    lshw -short -C memory | grep -i empty<\/pre>\n

    \u8f93\u51fa\u4e3a\u7a7a\u5219\u610f\u5473\u7740\u6240\u6709\u7684\u63d2\u69fd\u90fd\u5728\u4f7f\u7528\u4e2d\u3002<\/p>\n

    \u786e\u5b9a\u4f60\u7684\u8ba1\u7b97\u673a\u62e5\u6709\u591a\u5c11\u663e\u5361\u5185\u5b58\u9700\u8981\u4e0b\u9762\u7684\u547d\u4ee4\u3002\u9996\u5148\u4f7f\u7528\u00a0lspci\u00a0\u5217\u51fa\u6240\u6709\u8bbe\u5907\u4fe1\u606f\u7136\u540e\u8fc7\u6ee4\u51fa\u4f60\u60f3\u8981\u7684\u663e\u5361\u8bbe\u5907\u4fe1\u606f:<\/p>\n

    lspci | grep -i vga<\/pre>\n

    \u89c6\u9891\u63a7\u5236\u5668\u7684\u8bbe\u5907\u53f7\u8f93\u51fa\u4fe1\u606f\u901a\u5e38\u5982\u4e0b\uff1a<\/p>\n

    00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)<\/pre>\n

    \u73b0\u5728\u518d\u52a0\u4e0a\u89c6\u9891\u8bbe\u5907\u53f7\u91cd\u65b0\u8fd0\u884c lspci\u00a0\u547d\u4ee4\uff1a<\/p>\n

    lspci -v -s 00:02.0<\/pre>\n

    \u8f93\u51fa\u4fe1\u606f\u4e2d prefetchable\u00a0\u90a3\u4e00\u884c\u663e\u793a\u4e86\u7cfb\u7edf\u4e2d\u7684\u663e\u5361\u5185\u5b58\u5927\u5c0f:<\/p>\n

    ...\r\nMemory at f0100000 (32-bit, non-prefetchable) [size=512K]\r\nI\/O ports at 1230 [size=8]\r\nMemory at e0000000 (32-bit, prefetchable) [size=256M]\r\nMemory at f0000000 (32-bit, non-prefetchable) [size=1M]\r\n...<\/pre>\n

    \u6700\u540e\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5c55\u793a\u5f53\u524d\u5185\u5b58\u4f7f\u7528\u91cf\uff08\u5146\u5b57\u8282\uff09\uff1a<\/p>\n

    free -m<\/pre>\n

    \u8fd9\u6761\u547d\u4ee4\u544a\u8bc9\u4f60\u591a\u5c11\u5185\u5b58\u662f\u7a7a\u95f2\u7684\uff0c\u591a\u5c11\u547d\u4ee4\u6b63\u5728\u4f7f\u7528\u4e2d\u4ee5\u53ca\u4ea4\u6362\u5185\u5b58\u7684\u5927\u5c0f\u548c\u662f\u5426\u6b63\u5728\u4f7f\u7528\u3002\u4f8b\u5982\uff0c\u8f93\u51fa\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n

    \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 total \u00a0 \u00a0 \u00a0 \u00a0used \u00a0 \u00a0 \u00a0 \u00a0free \u00a0 \u00a0 shared \u00a0 \u00a0buff\/cache \u00a0 available\r\nMem: \u00a0 \u00a0 \u00a0 \u00a0 \u00a011891 \u00a0 \u00a0 \u00a0 \u00a01326 \u00a0 \u00a0 \u00a0 \u00a08877 \u00a0 \u00a0 \u00a0212 \u00a0 \u00a0 \u00a0 \u00a01687 \u00a0 \u00a0 \u00a0 10077\r\nSwap: \u00a0 \u00a0 \u00a0 \u00a0 \u00a01999 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 0 \u00a0 \u00a0 \u00a0 \u00a01999<\/pre>\n

    top\u00a0\u547d\u4ee4\u4e3a\u4f60\u63d0\u4f9b\u5185\u5b58\u4f7f\u7528\u66f4\u52a0\u8be6\u7ec6\u7684\u4fe1\u606f\u3002\u5b83\u663e\u793a\u4e86\u5f53\u524d\u5168\u90e8\u5185\u5b58\u548c CPU \u4f7f\u7528\u60c5\u51b5\u5e76\u6309\u7167\u8fdb\u7a0b ID\u3001\u7528\u6237 ID \u53ca\u6b63\u5728\u8fd0\u884c\u7684\u547d\u4ee4\u7ec6\u5206\u3002\u540c\u65f6\u8fd9\u6761\u547d\u4ee4\u4e5f\u662f\u5168\u5c4f\u8f93\u51fa:<\/p>\n

    top<\/pre>\n
    \u78c1\u76d8\u6587\u4ef6\u7cfb\u7edf\u548c\u8bbe\u5907<\/strong><\/div>\n

    \u4f60\u53ef\u4ee5\u8f7b\u677e\u786e\u5b9a\u6709\u5173\u78c1\u76d8\u3001\u5206\u533a\u3001\u6587\u4ef6\u7cfb\u7edf\u548c\u5176\u4ed6\u8bbe\u5907\u4fe1\u606f\u3002<\/p>\n

    \u663e\u793a\u6bcf\u4e2a\u78c1\u76d8\u8bbe\u5907\u7684\u63cf\u8ff0\u4fe1\u606f\uff1a<\/p>\n

    lshw -short -C disk<\/pre>\n

    \u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6\u4efb\u4f55\u6307\u5b9a\u7684 SATA \u78c1\u76d8\u8be6\u7ec6\u4fe1\u606f\uff0c\u4f8b\u5982\u5176\u578b\u53f7\u3001\u5e8f\u5217\u53f7\u4ee5\u53ca\u652f\u6301\u7684\u6a21\u5f0f\u548c\u6247\u533a\u6570\u91cf\u7b49\uff1a<\/p>\n

    hdparm -i \/dev\/sda<\/pre>\n

    \u5f53\u7136\uff0c\u5982\u679c\u9700\u8981\u7684\u8bdd\u4f60\u5e94\u8be5\u5c06\u00a0sda\u00a0\u66ff\u6362\u6210\u00a0sdb\u00a0\u6216\u8005\u5176\u4ed6\u8bbe\u5907\u53f7\u3002<\/p>\n

    \u8981\u5217\u51fa\u6240\u6709\u78c1\u76d8\u53ca\u5176\u5206\u533a\u548c\u5927\u5c0f\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

    lsblk<\/pre>\n

    \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u83b7\u53d6\u66f4\u591a\u6709\u5173\u6247\u533a\u6570\u91cf\u3001\u5927\u5c0f\u3001\u6587\u4ef6\u7cfb\u7edf ID \u548c \u7c7b\u578b\u4ee5\u53ca\u5206\u533a\u5f00\u59cb\u548c\u7ed3\u675f\u6247\u533a\uff1a<\/p>\n

    fdisk -l<\/pre>\n

    \u8981\u542f\u52a8 Linux\uff0c\u4f60\u9700\u8981\u786e\u5b9a\u00a0GRUB\u00a0\u5f15\u5bfc\u7a0b\u5e8f\u7684\u53ef\u6302\u8f7d\u5206\u533a\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u00a0blkid\u00a0\u547d\u4ee4\u627e\u5230\u6b64\u4fe1\u606f\u3002\u5b83\u5217\u51fa\u4e86\u6bcf\u4e2a\u5206\u533a\u7684\u552f\u4e00\u6807\u8bc6\u7b26\uff08UUID\uff09\u53ca\u5176\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff08\u4f8b\u5982 ext3 \u6216 ext4\uff09\uff1a<\/p>\n

    blkid<\/pre>\n

    \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5217\u51fa\u5df2\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u548c\u5b83\u4eec\u7684\u6302\u8f7d\u70b9\uff0c\u4ee5\u53ca\u5df2\u7528\u7684\u7a7a\u95f4\u548c\u53ef\u7528\u7684\u7a7a\u95f4\uff08\u5146\u5b57\u8282\u4e3a\u5355\u4f4d\uff09\uff1a<\/p>\n

    df -m<\/pre>\n

    \u6700\u540e\uff0c\u4f60\u53ef\u4ee5\u5217\u51fa\u6240\u6709\u7684 USB \u548c PCI \u603b\u7ebf\u4ee5\u53ca\u5176\u4ed6\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\uff1a<\/p>\n

    lsusb<\/pre>\n
    \u7f51\u7edc<\/strong><\/div>\n

    Linux \u63d0\u4f9b\u5927\u91cf\u7684\u7f51\u7edc\u76f8\u5173\u547d\u4ee4\uff0c\u4e0b\u9762\u53ea\u662f\u51e0\u4e2a\u4f8b\u5b50\u3002<\/p>\n

    \u67e5\u770b\u4f60\u7684\u7f51\u5361\u786c\u4ef6\u8be6\u7ec6\u4fe1\u606f:<\/p>\n

    lshw -C network\r\n<\/pre>\n

    ifconfig\u00a0\u662f\u663e\u793a\u7f51\u7edc\u63a5\u53e3\u7684\u4f20\u7edf\u547d\u4ee4\uff1a<\/p>\n

    ifconfig -a<\/pre>\n

    \u4f46\u662f\u73b0\u5728\u5f88\u591a\u4eba\u4eec\u4f7f\u7528\uff1a<\/p>\n

    ip link show<\/pre>\n

    \u5728\u9605\u8bfb\u8f93\u51fa\u65f6\uff0c\u4e86\u89e3\u5e38\u89c1\u7684\u7f51\u7edc\u7f29\u5199\u5341\u5206\u6709\u7528\uff1a<\/p>\n\n\n\n\n\n\n\n\n\n
    \u7f29\u5199<\/th>\n\u542b\u4e49<\/th>\n<\/tr>\n<\/thead>\n
    lo<\/td>\n\u56de\u73af\u63a5\u53e3<\/td>\n<\/tr>\n
    eth0\u00a0\u6216\u00a0enp*<\/td>\n\u4ee5\u592a\u7f51\u63a5\u53e3<\/td>\n<\/tr>\n
    wlan0<\/td>\n\u65e0\u7ebf\u7f51\u63a5\u53e3<\/td>\n<\/tr>\n
    ppp0<\/td>\n\u70b9\u5bf9\u70b9\u534f\u8bae\u63a5\u53e3\uff08\u7531\u62e8\u53f7\u8c03\u5236\u89e3\u8c03\u5668\u3001PPTP VPN \u8fde\u63a5\u6216\u8005 USB \u8c03\u5236\u89e3\u8c03\u5668\u4f7f\u7528\uff09<\/td>\n<\/tr>\n
    vboxnet0\u00a0\u6216\u00a0vmnet*<\/td>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

    \u8868\u4e2d\u7684\u661f\u53f7\u662f\u901a\u914d\u7b26\uff0c\u4ee3\u8868\u4e0d\u540c\u7cfb\u7edf\u7684\u4efb\u610f\u5b57\u7b26\u3002<\/p>\n

    \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u663e\u793a\u9ed8\u8ba4\u7f51\u5173\u548c\u8def\u7531\u8868\uff1a<\/p>\n

    ip route | column -t<\/pre>\n
    \u8f6f\u4ef6<\/strong><\/div>\n

    \u8ba9\u6211\u4eec\u4ee5\u663e\u793a\u6700\u5e95\u5c42\u8f6f\u4ef6\u8be6\u7ec6\u4fe1\u606f\u7684\u4e24\u6761\u547d\u4ee4\u6765\u7ed3\u675f\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u77e5\u9053\u662f\u5426\u5b89\u88c5\u4e86\u6700\u65b0\u7684\u56fa\u4ef6\u8be5\u600e\u4e48\u529e\uff1f\u8fd9\u6761\u547d\u4ee4\u663e\u793a\u4e86 UEFI \u6216 BIOS \u7684\u65e5\u671f\u548c\u7248\u672c:<\/p>\n

    dmidecode -t bios<\/pre>\n

    \u5185\u6838\u7248\u672c\u662f\u591a\u5c11\uff0c\u4ee5\u53ca\u5b83\u662f 64 \u4f4d\u7684\u5417\uff1f\u7f51\u7edc\u4e3b\u673a\u540d\u662f\u4ec0\u4e48\uff1f\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u67e5\u51fa\u7ed3\u679c\uff1a<\/p>\n

    uname -a<\/pre>\n

    \u4f60\u6709\u559c\u6b22\u7684\u547d\u4ee4\u88ab\u6211\u5ffd\u7565\u6389\u7684\u5417\uff1f\u8bf7\u6dfb\u52a0\u8bc4\u8bba\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/p>\n


    \n

    via:\u00a0https:\/\/opensource.com\/article\/19\/9\/linux-commands-hardware-information<\/a><\/p>\n

    \u4f5c\u8005\uff1aHoward Fosdick<\/a>\u00a0\u9009\u9898\uff1alujun9972<\/a>\u00a0\u8bd1\u8005\uff1away-ww<\/a>\u00a0\u6821\u5bf9\uff1awxy<\/a><\/p>\n

    \u672c\u6587\u7531\u00a0LCTT<\/a>\u00a0\u539f\u521b\u7f16\u8bd1\uff0cLinux\u4e2d\u56fd<\/a>\u00a0\u8363\u8a89\u63a8\u51fa<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u4f60\u53ef\u80fd\u4f1a\u6709\u5f88\u591a\u7684\u539f\u56e0\u9700\u8981\u67e5\u6e05\u8ba1\u7b97\u673a\u786c\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u4f60\u9700\u8981\u4fee\u590d\u67d0\u4e9b\u95ee\u9898\u5e76\u5728\u8bba\u575b\u4e0a\u53d1\u51fa\u8bf7\u6c42\uff0c\u4eba\u4eec\u53ef\u80fd\u4f1a\u7acb\u5373\u8be2\u95ee\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u4f53\u7684\u4fe1\u606f\u3002\u6216\u8005\u5f53\u4f60\u60f3\u8981\u5347\u7ea7\u8ba1\u7b97\u673a\u914d\u7f6e\u65f6\uff0c\u4f60\u9700\u8981\u77e5\u9053\u73b0\u6709\u7684\u786c\u4ef6\u578b\u53f7\u548c\u80fd\u591f\u5347\u7ea7\u7684\u578b\u53f7\u3002\u8fd9\u4e9b\u90fd\u9700\u8981\u67e5\u8be2\u4f60\u7684\u8ba1\u7b97\u673a\u5177\u4f53\u89c4\u683c\u4fe1\u606f\u3002<\/p>\n","protected":false},"author":323,"featured_media":129725,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-160838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=160838"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160838\/revisions"}],"predecessor-version":[{"id":161231,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/160838\/revisions\/161231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/129725"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=160838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=160838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=160838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}