{"id":442,"date":"2019-02-20T14:01:31","date_gmt":"2019-02-20T06:01:31","guid":{"rendered":"https:\/\/fick707.com\/?p=442"},"modified":"2019-02-20T14:02:03","modified_gmt":"2019-02-20T06:02:03","slug":"linux-check-version-of-os","status":"publish","type":"post","link":"https:\/\/fick707.com\/?p=442","title":{"rendered":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7248\u672c\u4fe1\u606f"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7248\u672c\u4fe1\u606f\uff0c \u5305\u62ec\u4f4d\u6570\u3001\u7248\u672c\u4fe1\u606f\u4ee5\u53caCPU\u5185\u6838\u4fe1\u606f\u3001CPU\u5177\u4f53\u578b\u53f7\u7b49\u7b49\uff0c\u6574\u4e2aCPU\u4fe1\u606f\u4e00\u76ee\u4e86\u7136\u3002<br>\u00a0<br>\u3000\u30001\u3001# uname \uff0da\u00a0\u00a0 \uff08Linux\u67e5\u770b\u7248\u672c\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4fe1\u606f\uff09<br>\u00a0<br>\u3000\u3000Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 athlon i386 GNU\/Linux<br>\u00a0<br>\u3000\u30002\u3001# cat \/proc\/version \uff08Linux\u67e5\u770b\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\uff09<br>\u00a0<br>\u00a0\u00a0\u00a0\u00a0\u00a0 Linux version 2.4.20-8 (bhcompile@porky.devel.redhat.com)<br>\u00a0\u00a0\u00a0\u00a0\u00a0 (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Mar 13 17:54:28 EST 2003<br>\u00a0<br>\u3000\u30003\u3001# cat \/etc\/issue\u00a0 \u6216cat \/etc\/redhat-release\uff08Linux\u67e5\u770b\u7248\u672c\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u53d1\u884c\u7248\u4fe1\u606f\uff09<br>\u00a0<br>\u3000\u3000Red Hat Linux release 9 (Shrike)<br><br><br>\u3000\u30004\u3001# cat \/proc\/cpuinfo \uff08Linux\u67e5\u770bcpu\u76f8\u5173\u4fe1\u606f\uff0c\u5305\u62ec\u578b\u53f7\u3001\u4e3b\u9891\u3001\u5185\u6838\u4fe1\u606f\u7b49\uff09<br>\u00a0<br>\u3000\u3000processor\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 : 0<br>\u00a0\u00a0\u00a0\u00a0 vendor_id\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 : AuthenticAMD<br>\u3000\u3000cpu family\u00a0\u00a0\u00a0 \u00a0 \u00a0 : 15<br>\u3000\u3000model\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 : 1<br>\u3000\u3000model name\u00a0\u00a0\u00a0\u00a0\u00a0 : AMD A4-3300M APU with Radeon(tm) HD Graphics<br>\u3000\u3000stepping\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 : 0<br>\u3000\u3000cpu MHz\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 : 1896.236<br>\u3000\u3000cache size\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 1024 KB<br>\u3000\u3000fdiv_bug\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 : no<br>\u3000\u3000hlt_bug\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : no<br>\u3000\u3000f00f_bug\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : no<br>\u3000\u3000coma_bug\u00a0 \u00a0 \u00a0 : no<br>\u3000\u3000fpu\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 : yes<br>\u3000\u3000fpu_exception\u00a0\u00a0 : yes<br>\u3000\u3000cpuid level\u00a0\u00a0\u00a0 \u00a0 : 6<br>\u3000\u3000wp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 : yes<br>\u3000\u3000flags\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0 \u00a0 : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr<br>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sse sse2 syscall mmxext lm 3dnowext 3dnow<br>\u3000\u3000bogomips\u00a0\u00a0\u00a0\u00a0\u00a0 : 3774.87<br>\u00a0<br>\u3000\u30005\u3001# getconf LONG_BIT\u00a0 \uff08Linux\u67e5\u770b\u7248\u672c\u8bf4\u660e\u5f53\u524dCPU\u8fd0\u884c\u572832bit\u6a21\u5f0f\u4e0b\uff0c \u4f46\u4e0d\u4ee3\u8868CPU\u4e0d\u652f\u630164bit\uff09<br>\u00a0<br>\u3000\u300032<br>\u00a0<br>\u3000\u30006\u3001# lsb_release -a<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u4e0b\u5982\u4f55\u67e5\u770b\u7248\u672c\u4fe1\u606f\uff0c \u5305\u62ec\u4f4d\u6570\u3001\u7248\u672c\u4fe1\u606f\u4ee5\u53caCPU\u5185\u6838\u4fe1\u606f\u3001CPU\u5177\u4f53\u578b\u53f7\u7b49\u7b49\uff0c\u6574\u4e2aCPU &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"series":[],"class_list":["post-442","post","type-post","status-publish","format-standard","hentry","category-programmers"],"_links":{"self":[{"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts\/442"}],"collection":[{"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=442"}],"version-history":[{"count":1,"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/fick707.com\/index.php?rest_route=\/wp\/v2\/posts\/442\/revisions\/443"}],"wp:attachment":[{"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=442"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/fick707.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}