{"id":218335,"date":"2021-05-22T10:01:37","date_gmt":"2021-05-22T02:01:37","guid":{"rendered":"https:\/\/gulass.cn\/?p=218335"},"modified":"2021-05-07T11:02:12","modified_gmt":"2021-05-07T03:02:12","slug":"linux-edition-commands","status":"publish","type":"post","link":"https:\/\/gulass.cn\/linux-edition-commands.html","title":{"rendered":"Linux\u4e2d\u67e5\u770b\u7248\u672c\u4fe1\u606f\u547d\u4ee4\u4ecb\u7ecd"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nLinux\u6709\u5f88\u591a\u53d1\u884c\u7248\u672c\uff0c\u4e00\u822c\u901a\u8fc7\u5185\u6838\u5c31\u53ef\u4ee5\u5224\u65ad\u5927\u81f4\u7684\u53d1\u884c\u7248\u672c\u3002\u4f46\u662f\u5982\u679c\u9700\u8981\u8be6\u7ec6\u7684\u53d1\u884c\u7248\u672c\u4fe1\u606f\uff0c\u5c31\u53ef\u4ee5\u501f\u52a9\u547d\u4ee4\u8fdb\u884c\u67e5\u770b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

lsb_release<\/strong><\/div>\n

\u663e\u793aLSB(Linux Standard Base)\u517c\u5bb9\u7684\u53d1\u884c\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u662fLSB\u517c\u5bb9\u7684\u53d1\u884c\u7248\u672c\uff0c\u5728\/etc\/lsb-release\u5c31\u53ef\u4ee5\u67e5\u770b\u5230\u5177\u4f53\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n

\"\"<\/p>\n

lsb_release\u53ef\u4ee5\u5feb\u901f\u8fc7\u6ee4\u8fd9\u4e9b\u4fe1\u606f\u627e\u5230\u81ea\u5df1\u9700\u8981\u7684\u5b57\u6bb5\uff0c\u8fd9\u4e2a\u547d\u4ee4\u6709\u53ef\u80fd\u6ca1\u6709\u81ea\u5e26\uff0c\u53ef\u4ee5\u81ea\u884c\u5b89\u88c5lsb-release\u5305\u5c31\u53ef\u4ee5\u6709\u4e86\u3002<\/p>\n

lsb_release\u00a0-h\r\nFSG\u00a0lsb_release\u00a0v1.4\u00a0prints\u00a0certain\u00a0LSB\u00a0(Linux\u00a0Standard\u00a0Base)\u00a0and\r\nDistribution\u00a0information.\r\n\u00a0\r\nUsage:\u00a0lsb_release\u00a0[OPTION]...\r\nWith\u00a0no\u00a0OPTION\u00a0specified\u00a0it\u00a0is\u00a0the\u00a0same\u00a0as\u00a0-v.\r\n\u00a0\r\nOptions:\r\n\u00a0\u00a0-v,\u00a0--version\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0the\u00a0version\u00a0of\u00a0the\u00a0LSB\u00a0specification\u00a0against\u00a0which\u00a0the\u00a0distribution\u00a0is\u00a0compliant.\r\n\u00a0\u00a0-i,\u00a0--id\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0the\u00a0string\u00a0id\u00a0of\u00a0the\u00a0distributor.\r\n\u00a0\u00a0-d,\u00a0--description\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0the\u00a0single\u00a0line\u00a0text\u00a0description\u00a0of\u00a0the\u00a0distribution.\r\n\u00a0\u00a0-r,\u00a0--release\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0the\u00a0release\u00a0number\u00a0of\u00a0the\u00a0distribution.\r\n\u00a0\u00a0-c,\u00a0--codename\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0the\u00a0codename\u00a0according\u00a0to\u00a0the\u00a0distribution\u00a0release.\r\n\u00a0\u00a0-a,\u00a0--all\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0all\u00a0of\u00a0the\u00a0above\u00a0information.\r\n\u00a0\u00a0-s,\u00a0--short\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0all\u00a0of\u00a0the\u00a0above\u00a0information\u00a0in\u00a0short\u00a0output\u00a0format.\r\n\u00a0\u00a0-h,\u00a0--help\r\n\u00a0\u00a0\u00a0\u00a0Display\u00a0this\u00a0message.<\/pre>\n
lsb_release\u00a0-a\r\nLSB\u00a0Version:\u00a0\u00a0\u00a0\u00a0n\/a\r\nDistributor\u00a0ID:\u00a0ManjaroLinux\r\nDescription:\u00a0\u00a0\u00a0\u00a0Manjaro\u00a0Linux\r\nRelease:\u00a0\u00a0\u00a0\u00a021.0.2\r\nCodename:\u00a0\u00a0\u00a0Ornara<\/pre>\n
Version\u6587\u4ef6<\/strong><\/div>\n

lsb_release\u8fd9\u4e2a\u547d\u4ee4\u9700\u8981\u6709\u53e6\u5916\u5b89\u88c5\uff0c\u5982\u679c\u6ca1\u6709\u5b89\u88c5\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u7684\u7248\u672c\u4fe1\u606f\u6587\u4ef6\u627e\u5230\u7248\u672c\u7684\u4fe1\u606f\u3002<\/p>\n

RHEL\u7cfb\u5217\uff1a\/etc\/redhat-release\u3001\/etc\/os-release\u3001\/etc\/system-release \u7b49\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4e00\u822c\u90fd\u662f\u6307\u5411\u540c\u4e00\u4e2a\u6587\u4ef6\uff0c\u5982\u679c\u662f\u91cd\u65b0\u53d1\u884c\u7684\u7248\u672c\uff0c\u4f8b\u5982centos\uff0c\u8fd8\u4f1a\u6709\/etc\/centos-release<\/p>\n

Debian\u7cfb\u5217\uff1a\/etc\/debian-version\u3001\/etc\/issue\u7b49\uff0c\u540c\u6837\u91cd\u65b0\u53d1\u884c\u7684\u7248\u672c\u4e5f\u4f1a\u6709\u5bf9\u5e94\u7684version\u6587\u4ef6\u3002<\/p>\n

\"\"<\/p>\n

\u5185\u6838\u7248\u672c<\/strong><\/div>\n

\u67e5\u770b\u5185\u6838\u7248\u672c\u4e00\u822c\u90fd\u4f7f\u7528uname\u8fd9\u4e2a\u547d\u4ee4\u3002<\/p>\n

uname\u00a0-a\r\nLinux\u00a0manjaro\u00a05.11.14-1-MANJARO\u00a0#1\u00a0SMP\u00a0PREEMPT\u00a0Wed\u00a0Apr\u00a014\u00a008:25:29\u00a0UTC\u00a02021\u00a0x86_64\u00a0GNU\/Linux<\/pre>\n

\u7528\u8fd9\u4e2a\u547d\u4ee4\u4e5f\u53ef\u4ee5\u5feb\u901f\u8fc7\u6ee4\u5230\u81ea\u5df1\u9700\u8981\u7684\u5b57\u6bb5\u3002<\/p>\n

\u4e5f\u53ef\u4ee5\u76f4\u63a5\u67e5\u770b\/proc\/version\u6765\u67e5\u770b\u5f53\u524d\u4e91\u4e2d\u7684\u5185\u6838\u7248\u672c<\/p>\n

cat\u00a0\/proc\/version\r\nLinux\u00a0version\u00a05.11.14-1-MANJARO\u00a0(builduser@LEGION)\u00a0(gcc\u00a0(GCC)\u00a010.2.0,\u00a0GNU\u00a0ld\u00a0(GNU\u00a0Binutils<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u663e\u793aLSB(Linux Standard Base)\u517c\u5bb9\u7684\u53d1\u884c\u7248\u672c\u4fe1\u606f\u3002\u5982\u679c\u662fLSB\u517c\u5bb9\u7684\u53d1\u884c\u7248\u672c\uff0c\u5728\/etc […]<\/p>\n","protected":false},"author":323,"featured_media":218341,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-218335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/218335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/323"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=218335"}],"version-history":[{"count":2,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/218335\/revisions"}],"predecessor-version":[{"id":218340,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/218335\/revisions\/218340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/218341"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=218335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=218335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=218335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}