{"id":281447,"date":"2023-08-29T20:03:43","date_gmt":"2023-08-29T12:03:43","guid":{"rendered":"https:\/\/lrxjmw.cn\/qszwlbbxxszk.html"},"modified":"2023-08-29T20:03:43","modified_gmt":"2023-08-29T12:03:43","slug":"qszwlbbxxszk","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/qszwlbbxxszk.html","title":{"rendered":"\u8f7b\u677e\u638c\u63e1Linux\u7248\u672c\u4fe1\u606f\uff1ashell\u67e5\u770b\u7ecf\u9a8c\uff01"},"content":{"rendered":"
\u5728\u4f7f\u7528Linux<\/a>\u7cfb\u7edf<\/a>\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff0c\u4ee5\u4fbf\u4e86\u89e3\u7cfb\u7edf\u7684\u7279\u6027\u548c\u529f\u80fd\u3002\u800c\u5728Linux\u4e2d\uff0c\u901a\u8fc7\u4f7f\u7528shell<\/a>\u547d\u4ee4<\/a>\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5230\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u4e0b\u9762\u5c0f\u7f16\u5c06\u4e3a\u5927\u5bb6\u5206\u4eab\u4e00\u4e9b\u5173\u4e8e\u5982\u4f55\u4f7f\u7528shell\u67e5\u770bLinux\u7248\u672c\u4fe1\u606f\u7684\u7ecf\u9a8c\u3002<\/p>\n \u4e00\u3001\u4f7f\u7528lsb_release\u547d\u4ee4\u67e5\u770b<\/p>\n lsb_release\u662f\u4e00\u4e2a\u7528\u4e8e\u663e\u793aLinux\u53d1\u884c\u7248\u76f8\u5173\u4fe1\u606f\u7684\u547d\u4ee4\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n \n \u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u51faLinux\u53d1\u884c\u7248\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u53d1\u884c\u7248\u540d\u79f0\u3001\u7248\u672c\u53f7\u3001\u63cf\u8ff0\u7b49\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4linux vps\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u6240\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u3002<\/p>\n \u4e8c\u3001\u4f7f\u7528cat\u547d\u4ee4\u67e5\u770b<\/p>\n \u9664\u4e86lsb_release\u547d\u4ee4\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528cat\u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n \n \u8fd9\u4e2a\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u5f53\u524d\u7cfb\u7edf\u6240\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u53ca\u5176\u7248\u672c\u53f7\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u6240\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u548c\u7248\u672c\u53f7\u3002<\/p>\n \u4e09\u3001\u4f7f\u7528uname\u547d\u4ee4\u67e5\u770b<\/p>\n uname\u662f\u4e00\u4e2a\u7528\u4e8e\u663e\u793a\u64cd\u4f5c\u7cfb\u7edf\u76f8\u5173\u4fe1\u606f\u7684\u547d\u4ee4\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff1a<\/p>\n \n \u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u5185\u6838\u7248\u672c\u3001\u786c\u4ef6\u67b6\u6784\u7b49\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n \u56db\u3001\u4f7f\u7528cat\u547d\u4ee4\u67e5\u770brelease\u6587\u4ef6<\/p>\n \u6709\u4e9bLinux\u53d1\u884c\u7248\u4f1a\u5c06\u7cfb\u7edf\u7248\u672c\u4fe1\u606f\u5b58\u50a8\u5728release\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7cat\u547d\u4ee4\u6765\u67e5\u770b\u8be5\u6587\u4ef6\u7684\u5185\u5bb9\u3002\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n \n \u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u51farelease\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u5176\u4e2d\u5305\u62ec\u4e86\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u8be6\u7ec6\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u7684\u7248\u672c\u548c\u53d1\u884c\u7248\u4fe1\u606f\u3002<\/p>\n <\/p>\n \u4e94\u3001\u4f7f\u7528hostnamectl\u547d\u4ee4\u67e5\u770b<\/p>\n \u5bf9\u4e8e\u4f7f\u7528systemd\u7684Linux\u53d1\u884c\u7248shell\u67e5\u770blinux\u7248\u672c\u4fe1\u606f<\/strong>\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528hostnamectl\u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n \n \u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u5f53\u524d\u7cfb\u7edf\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u64cd\u4f5c\u7cfb\u7edf\u540d\u79f0\u3001\u5185\u6838\u7248\u672c\u3001\u786c\u4ef6\u67b6\u6784\u7b49\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u8be6\u7ec6\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u7684\u7248\u672c\u548c\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n \u516d\u3001\u4f7f\u7528\/proc\/version\u6587\u4ef6\u67e5\u770b<\/p>\n \u5728Linux\u4e2d\uff0c\/proc\/version\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u6587\u4ef6\uff0c\u5b83\u5305\u542b\u4e86\u5f53\u524d\u8fd0\u884c\u5185\u6838\u7684\u7248\u672c\u4fe1\u606f\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7cat\u547d\u4ee4\u6765\u67e5\u770b\u8be5\u6587\u4ef6\u7684\u5185\u5bb9\u3002\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n \n \u8be5\u547d\u4ee4\u4f1a\u663e\u793a\u51fa\u5f53\u524d\u8fd0\u884c\u5185\u6838\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u5185\u6838\u7248\u672c\u3001\u7f16\u8bd1\u65f6\u95f4\u7b49\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u8be6\u7ec6\u4e86\u89e3\u5f53\u524d\u8fd0\u884c\u5185\u6838\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n \u4e03\u3001\u4f7f\u7528ls\u547d\u4ee4\u67e5\u770b<\/p>\n ls\u662f\u4e00\u4e2a\u7528\u4e8e\u663e\u793a\u76ee\u5f55\u5185\u5bb9\u7684\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528ls\u547d\u4ee4\u6765\u67e5\u770b\/proc\u76ee\u5f55\u4e0b\u7684\u76f8\u5173\u6587\u4ef6\u3002\u5177\u4f53\u64cd\u4f5c\u5982\u4e0b\uff1a<\/p>\n \n \u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4linux windows\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u5305\u542b\u7248\u672c\u4fe1\u606f\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u5e76\u4f7f\u7528cat\u547d\u4ee4\u67e5\u770b\u5176\u5185\u5bb9\u3002<\/p>\n \u516b\u3001\u4f7f\u7528\u7cfb\u7edf\u56fe\u5f62\u754c\u9762\u67e5\u770b<\/p>\n \u9664\u4e86\u547d\u4ee4\u884c\u65b9\u5f0f\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u7cfb\u7edf\u56fe\u5f62\u754c\u9762\u6765\u67e5\u770bLinux\u7684\u7248\u672c\u4fe1\u606f\u3002\u4e0d\u540c\u7684\u53d1\u884c\u7248\u53ef\u80fd\u4f1a\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\u63d0\u4f9b\u7248\u672c\u4fe1\u606f\uff0c\u4e00\u822c\u53ef\u4ee5\u5728\u7cfb\u7edf\u8bbe\u7f6e\u3001\u5173\u4e8e\u672c\u673a\u7b49\u9009\u9879\u4e2d\u627e\u5230\u76f8\u5e94\u7684\u4fe1\u606f\u3002<\/p>\n \u4e5d\u3001\u603b\u7ed3<\/p>\n \u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5shell\u67e5\u770blinux\u7248\u672c\u4fe1\u606f<\/strong>\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770bLinux\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u65e0\u8bba\u662f\u4f7f\u7528\u547d\u4ee4\u884c\u8fd8\u662f\u7cfb\u7edf\u56fe\u5f62\u754c\u9762\uff0c\u90fd\u80fd\u591f\u5e2e\u52a9\u6211\u4eec\u5feb\u901f\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u6240\u4f7f\u7528\u7684Linux\u53d1\u884c\u7248\u548c\u7248\u672c\u53f7\u3002\u5e0c\u671b\u672c\u7bc7\u7ecf\u9a8c\u5206\u4eab\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":" \u800c\u5728Linux\u4e2d\uff0c\u901a\u8fc7\u4f7f\u7528shell\u547d\u4ee4\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5230\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff1a\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\uff1a\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u4e86\u89e3\u5f53\u524d\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u8be6\u7ec6\u4e86\u89e3\u5f53\u524d\u8fd0\u884c\u5185\u6838\u7684\u7248\u672c\u4fe1\u606f\u3002\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u5305\u542b\u7248\u672c\u4fe1\u606f\u7684\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u5e76\u4f7f\u7528cat\u547d\u4ee4\u67e5\u770b\u5176\u5185\u5bb9\u3002\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u770bLinux\u7cfb\u7edf\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n","protected":false},"author":1,"featured_media":281448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-281447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/281447","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=281447"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/281447\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/281448"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=281447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=281447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=281447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\nlsb_release -a\n<\/pre>\n<\/p>\n
\ncat \/etc\/issue\n<\/pre>\n<\/p>\n
\nuname -a\n<\/pre>\n<\/p>\n
\ncat \/etc\/*-release\n<\/pre>\n<\/p>\n
\nhostnamectl\n<\/pre>\n<\/p>\n
\ncat \/proc\/version\n<\/pre>\n<\/p>\n
\nls \/proc\n<\/pre>\n<\/p>\n