{"id":172734,"date":"2020-02-24T10:42:42","date_gmt":"2020-02-24T02:42:42","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=172734"},"modified":"2020-02-20T13:45:24","modified_gmt":"2020-02-20T05:45:24","slug":"view-linux-kernel","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/view-linux-kernel.html","title":{"rendered":"\u4f7f\u7528\u547d\u4ee4\u67e5\u770bLinux\u5185\u6838\u7248\u672c\u7684\u4e09\u79cd\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u60f3\u77e5\u9053\u60a8\u7684\u7cfb\u7edf\u4f7f\u7528\u54ea\u4e2aLinux\u5185\u6838\u7248\u672c\u5417\uff1f\u4ee5\u4e0b\u662f\u5728Linux\u7ec8\u7aef\u4e2d\u68c0\u67e5\u5185\u6838\u7248\u672c\u7684\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n

<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u5f53\u60a8\u9700\u8981\u4e86\u89e3\u7cfb\u7edf\u4e0a\u6b63\u5728\u4f7f\u7528\u7684\u786e\u5207Linux\u5185\u6838\u7248\u672c\u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\u3002\u501f\u52a9\u529f\u80fd\u5f3a\u5927\u7684Linux\u547d\u4ee4\u884c\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u627e\u5230\u7b54\u6848\u3002<\/p>\n

\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u5c55\u793a\u5404\u79cd\u4e86\u89e3\u5185\u6838\u7248\u672c\u4ee5\u53ca\u8fd9\u4e9b\u6570\u5b57\u5b9e\u9645\u542b\u4e49\u7684\u65b9\u6cd5\u3002<\/p>\n

\"\"<\/p>\n

\u5982\u4f55\u627e\u5230Linux\u5185\u6838\u7248\u672c<\/strong><\/div>\n

\u5728\u64b0\u5199\u672c\u6587\u65f6\uff0c\u6211\u6b63\u5728\u4f7f\u7528Ubuntu 18.04\u3002\u4f46\u662f\u8fd9\u4e9b\u547d\u4ee4\u662f\u901a\u7528\u7684\uff0c\u53ef\u4ee5\u5728Fedora\uff0cDebian\uff0cCentOS\uff0cSUSE Linux\u6216\u4efb\u4f55\u5176\u4ed6Linux\u53d1\u884c\u7248\u4e0a\u4f7f\u7528\u3002<\/p>\n

\u4f7f\u7528uname\u547d\u4ee4\u67e5\u627eLinux\u5185\u6838
\n<\/strong><\/span><\/div>\n

uname\u662f\u7528\u4e8e\u83b7\u53d6\u7cfb\u7edf\u4fe1\u606f\u7684Linux\u547d\u4ee4\u3002\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u786e\u5b9a\u60a8\u4f7f\u7528\u7684\u662f32\u4f4d\u8fd8\u662f64\u4f4d\u7cfb\u7edf\u3002<\/p>\n

\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u5e76\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

[linuxmi@linux:~\/lrxjmw.cn]$ uname -r<\/pre>\n

\u8f93\u51fa\u5c06\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n

5.3.0-28-generic<\/pre>\n

\"\"<\/p>\n

\u8fd9\u610f\u5473\u7740\u60a8\u6b63\u5728\u8fd0\u884cLinux\u5185\u68385.3.0-28\uff0c\u6216\u8005\u66f4\u7b3c\u7edf\u5730\u8bf4\uff0c\u60a8\u6b63\u5728\u8fd0\u884cLinux\u5185\u6838\u7248\u672c5.3\u3002<\/p>\n

\u4f46\u662f\u5176\u4ed6\u6570\u5b57\u5728\u8fd9\u91cc\u610f\u5473\u7740\u4ec0\u4e48\uff1f \u8ba9\u6211\u5411\u60a8\u89e3\u91ca\u4e00\u4e0b\uff1a<\/p>\n

    \n
  • 5 \u2013\u5185\u6838\u7248\u672c<\/li>\n
  • 3 \u2013\u91cd\u5927\u4fee\u8ba2<\/li>\n
  • 0 \u2013\u8f7b\u5fae\u4fee\u8ba2<\/li>\n
  • 28 \u2013\u9519\u8bef\u4fee\u590d<\/li>\n<\/ul>\n

    generic\u2013\u7279\u5b9a\u4e8e\u7248\u672c\u7684\u5b57\u7b26\u4e32\u3002 \u5bf9\u4e8eUbuntu\uff0c\u8fd9\u610f\u5473\u7740\u6211\u6b63\u5728\u4f7f\u7528\u684c\u9762\u7248\u672c\u3002 \u5bf9\u4e8eUbuntu\u670d\u52a1\u5668\u7248\u672c\uff0c\u5b83\u5e94\u8be5\u662fserver\u3002<\/p>\n

    \u60a8\u8fd8\u53ef\u4ee5\u5c06uname\u547d\u4ee4\u4e0e-a\u9009\u9879\u4e00\u8d77\u4f7f\u7528\u3002 \u5982\u679c\u9700\u8981\uff0c\u8fd9\u5c06\u63d0\u4f9b\u66f4\u591a\u7684\u7cfb\u7edf\u4fe1\u606f\u3002<\/p>\n

    [linuxmi@linux:~\/lrxjmw.cn]$ uname -a<\/pre>\n

    \u8f93\u51fa\u5c06\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n

    Linux linux 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU\/Linux<\/pre>\n

    \u8ba9\u6211\u89e3\u91ca\u4e00\u4e0b\u8f93\u51fa\u5e76\u8d4b\u4e88\u5b83\u4e00\u4e2a\u542b\u4e49:\uff1a<\/p>\n

      \n
    • Linux \u2013\u5185\u6838\u540d\u79f0\u3002 \u5982\u679c\u5728BSD\u6216macOS\u4e0a\u8fd0\u884c\u76f8\u540c\u7684\u547d\u4ee4\uff0c\u7ed3\u679c\u5c06\u6709\u6240\u4e0d\u540c\u3002<\/li>\n
    • linux \u2013\u4e3b\u673a\u540d<\/li>\n
    • 5.3.0-28-generic \u2013\u5185\u6838\u7248\u672c\uff08\u6211\u4eec\u521a\u521a\u8bf4\u8fc7\u4e86\uff09<\/li>\n
    • #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 \u2013 \u8fd9\u610f\u5473\u7740Ubuntu\u7f16\u8bd1\u4e865.3.0-28-generic 30\u6b21\u3002\u6700\u540e\u7684\u7f16\u8bd1\u65f6\u95f4\u6233\u4e5f\u5728\u90a3\u91cc\u3002<\/li>\n
    • x86_64 \u2013\u673a\u5668\u67b6\u6784<\/li>\n
    • x86_64 \u2013\u5904\u7406\u5668\u67b6\u6784<\/li>\n
    • x86_64 \u2013\u64cd\u4f5c\u7cfb\u7edf\u4f53\u7cfb\u7ed3\u6784\uff08\u60a8\u53ef\u4ee5\u572864\u4f4d\u5904\u7406\u5668\u4e0a\u8fd0\u884c32\u4f4dOS\uff09<\/li>\n
    • GNU\/Linux \u2013\u64cd\u4f5c\u7cfb\u7edf\uff08\u4e0d\uff0c\u5b83\u4e0d\u4f1a\u663e\u793a\u53d1\u884c\u540d\u79f0\uff09<\/li>\n<\/ul>\n
      2\u3001\u4f7f\u7528\/proc\/version\u6587\u4ef6\u67e5\u627eLinux\u5185\u6838<\/strong><\/span><\/div>\n

      \u5728Linux\u4e2d\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5728\u6587\u4ef6\/proc\/version\u4e2d\u627e\u5230Linux\u5185\u6838\u4fe1\u606f\u3002 \u53ea\u9700\u67e5\u770b\u6b64\u6587\u4ef6\u7684\u5185\u5bb9\u5373\u53ef\uff1a<\/p>\n

      [linuxmi@linux:~\/lrxjmw.cn]$ cat \/proc\/version<\/pre>\n

      \u60a8\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e\u6211\u4eec\u7528uname\u770b\u5230\u7684\u8f93\u51fa\u3002<\/p>\n

      Linux version 5.3.0-28-generic (buildd@lcy01-amd64-009) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020\r\n<\/pre>\n

      \u60a8\u53ef\u4ee5\u5728\u6b64\u5904\u770b\u5230\u5185\u6838\u7248\u672c5.3.0-28-generic<\/p>\n

      3.\u4f7f\u7528dmesg\u547d\u4ee4\u67e5\u627eLinux\u5185\u6838\u7248\u672c<\/strong><\/span><\/div>\n

      dmesg\u662f\u7528\u4e8e\u7f16\u5199\u5185\u6838\u6d88\u606f\u7684\u529f\u80fd\u5f3a\u5927\u7684\u547d\u4ee4\u3002 \u5728\u83b7\u53d6\u7cfb\u7edf\u4fe1\u606f\u65f6\u4e5f\u975e\u5e38\u6709\u7528\u3002<\/p>\n

      \u7531\u4e8edmesg\u63d0\u4f9b\u4e86\u5f88\u591a\u4fe1\u606f\uff0c\u56e0\u6b64\u60a8\u5e94\u8be5\u4f7f\u7528\u7c7b\u4f3cless\u7684\u547d\u4ee4\u6765\u9605\u8bfb\u5b83\u3002 \u4f46\u662f\u7531\u4e8e\u60a8\u53ea\u662f\u5728\u8fd9\u91cc\u68c0\u67e5Linux\u5185\u6838\u7248\u672c\uff0c\u56e0\u6b64\u5728Linux\u4e0a\u8fdb\u884cgrepping\u5e94\u8be5\u4f1a\u63d0\u4f9b\u6240\u9700\u7684\u8f93\u51fa\u3002<\/p>\n

      [linuxmi@linux:~\/lrxjmw.cn]$ dmesg | grep Linux\r\n<\/pre>\n

      \u8f93\u51fa\u53ea\u6709\u51e0\u884c\uff0c\u4f46\u662f\u60a8\u5e94\u8be5\u80fd\u591f\u5f88\u5bb9\u6613\u5730\u8bc6\u522b\u51faLinux\u5185\u6838\u7248\u672c\u3002<\/p>\n

      \r\n[    0.000000] Linux version 5.3.0-28-generic (buildd@lcy01-amd64-009) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 (Ubuntu 5.3.0-28.30~18.04.1-generic 5.3.13)\r\n[    0.462531] ACPI: Added _OSI(Linux-Dell-Video)\r\n[    0.462532] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)\r\n[    0.462533] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)\r\n[    0.600862] pps_core: LinuxPPS API ver. 1 registered\r\n[    1.290385] Linux agpgart interface v0.103\r\n[    1.355403] usb usb1: Manufacturer: Linux 5.3.0-28-generic ohci_hcd\r\n[  16.311337] 08:42:28.440352 main    OS Product: Linux<\/pre>\n

      \u60a8\u5982\u4f55\u67e5\u770bLinux\u5185\u6838\u7248\u672c\u548c\u5176\u4ed6\u4fe1\u606f\uff1f\u5728\u8fd9\u91cc\u8ba8\u8bba\u7684\u4e09\u79cd\u65b9\u5f0f\u4e2d\uff0c\u6211\u4e00\u76f4\u90fd\u4f7f\u7528uname\u3002 \u6bd4\u8f83\u65b9\u4fbf\u3002<\/p>\n

      \u4f60\u5462\uff1f \u60a8\u66f4\u559c\u6b22\u4f7f\u7528\u54ea\u4e2a\u547d\u4ee4\u6765\u83b7\u53d6Linux\u5185\u6838\u4fe1\u606f\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"

      \u5f53\u60a8\u9700\u8981\u4e86\u89e3\u7cfb\u7edf\u4e0a\u6b63\u5728\u4f7f\u7528\u7684\u786e\u5207Linux\u5185\u6838\u7248\u672c\u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\u3002\u501f\u52a9\u529f\u80fd\u5f3a\u5927\u7684Linux\u547d\u4ee4\u884c\uff0c\u60a8 […]<\/p>\n","protected":false},"author":317,"featured_media":118928,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-172734","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\/172734","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\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=172734"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/172734\/revisions"}],"predecessor-version":[{"id":172743,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/172734\/revisions\/172743"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/118928"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=172734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=172734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=172734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}