{"id":272133,"date":"2023-05-14T20:09:41","date_gmt":"2023-05-14T12:09:41","guid":{"rendered":"https:\/\/lrxjmw.cn\/tmlwjxtmllx.html"},"modified":"2023-05-14T20:09:41","modified_gmt":"2023-05-14T12:09:41","slug":"tmlwjxtmllx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/tmlwjxtmllx.html","title":{"rendered":"\u63a2\u79d8Linux\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7c7b\u578b"},"content":{"rendered":"

Linux<\/a>\u7cfb\u7edf<\/a>\u7684\u6587\u4ef6\u7cfb\u7edf\u662f\u4e00\u4e2a\u7c7b\u4f3c\u4e8e\u6811\u5f62\u7ed3\u6784\u7684\u5c42\u7ea7\u76ee\u5f55\u7ed3\u6784\uff0c\u6bcf\u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u90fd\u6709\u5b83\u4eec\u81ea\u5df1\u7684\u4f4d\u7f6e\u3002\u5728Linux\u4e2d\uff0c\u6240\u6709\u7684\u6587\u4ef6\u90fd\u5b58\u50a8\u5728\u4e00\u4e2a\u6839\u76ee\u5f55\u4e0b\uff0c\u8fd9\u4e2a\u6839\u76ee\u5f55\u5c31\u662f\u201c\/\u201d\uff08\u659c\u6760\uff09\u3002\u5728\u8fd9\u4e2a\u6839\u76ee\u5f55\u4e0b\uff0c\u6709\u7740\u5f88\u591a\u4e0d\u540c\u7684\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdLinux\u6587\u4ef6\u7cfb\u7edf\u4e2d\u5404\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u76ee\u5f55\u3002<\/p>\n

1.\/bin \u76ee\u5f55<\/b><\/p>\n

\/bin \u76ee\u5f55\u5305\u542b\u4e86\u4e00\u4e9b\u6700\u57fa\u672c\u7684\u53ef\u6267\u884c\u547d\u4ee4<\/a>\u3002\u8fd9\u4e9b\u547d\u4ee4\u53ef\u4ee5\u88ab\u6240\u6709\u7528\u6237\u4f7f\u7528\u3002\u4f8b\u5982\uff0c\/bin\/bash \u662f Linux \u4e2d\u6700\u5e38\u7528\u7684 shell \u4e4b\u4e00\u3002<\/p>\n

2.\/sbin \u76ee\u5f55<\/b><\/p>\n

linux\u5220\u9664\u67d0\u79cd\u7c7b\u578b\u6587\u4ef6_\u5982\u4f55\u5c06\u672c\u673a\u4e0a\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\u865a\u62df\u673a\u4e0b\u7684linux\u7cfb\u7edf\u4e0b_linux\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7c7b\u578b<\/p>\n

\/sbin \u76ee\u5f55\u5305\u542b\u4e86\u4e00\u4e9b\u53ea\u80fd\u7531\u7ba1\u7406\u5458\u6216\u5177\u6709\u7279\u5b9a\u6743\u9650\u7684\u7528\u6237\u8fd0\u884c\u7684\u547d\u4ee4\u3002\u8fd9\u4e9b\u547d\u4ee4\u901a\u5e38\u7528\u4e8e\u7cfb\u7edf\u7ba1\u7406\u4efb\u52a1linux\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7c7b\u578b<\/strong>\uff0c\u5982\u7f51\u7edc\u8bbe\u7f6e\u6216\u78c1\u76d8\u5206\u533a\u7b49\u3002\u4f8b\u5982\uff0c\/sbin\/ifconfig \u547d\u4ee4\u7528\u4e8e\u914d\u7f6e\u7f51\u7edc\u63a5\u53e3\u3002<\/p>\n

3.\/usr \u76ee\u5f55<\/b><\/p>\n

\/usr \u76ee\u5f55\u5305\u542b\u4e86\u7528\u6237\u5b89\u88c5\u8f6f\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5e94\u8be5\u628a\u6240\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u5e93\u90fd\u5b89\u88c5\u5230\/usr\/local \u4e0b\u9762\u3002\u4f8b\u5982linux\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7c7b\u578b<\/strong>\uff0c\/usr\/bin \u4e2d\u5305\u542b\u4e86\u5927\u90e8\u5206\u7528\u6237\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<\/p>\n

\u5982\u4f55\u5c06\u672c\u673a\u4e0a\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\u865a\u62df\u673a\u4e0b\u7684linux\u7cfb\u7edf\u4e0b_linux\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7c7b\u578b_linux\u5220\u9664\u67d0\u79cd\u7c7b\u578b\u6587\u4ef6<\/p>\n

4.\/etc \u76ee\u5f55<\/b><\/p>\n

\/etc \u76ee\u5f55\u5305\u542b\u4e86\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3002\u8fd9\u4e9b\u6587\u4ef6\u901a\u5e38\u53ef\u4ee5\u88ab\u7ba1\u7406\u5458\u4fee\u6539\uff0c\u4ee5\u6539\u53d8\u7cfb\u7edf\u7684\u884c\u4e3a\u3002\u4f8b\u5982\uff0c\/etc\/passwd \u6587\u4ef6\u8bb0\u5f55\u4e86\u6bcf\u4e2a\u7528\u6237\u7684\u57fa\u672c\u4fe1\u606f\u3002<\/p>\n

5.\/dev \u76ee\u5f55<\/b><\/p>\n

\/dev \u76ee\u5f55\u5305\u542b\u4e86\u6240\u6709\u7684\u8bbe\u5907\u6587\u4ef6\u3002Linux \u4e2d\u7684\u4e00\u5207\u90fd\u662f\u6587\u4ef6\uff0c\u5305\u62ec\u786c\u4ef6\u8bbe\u5907\u3002\u4f8b\u5982\uff0c\/dev\/sda1 \u662f\u7b2c\u4e00\u4e2a SATA \u786c\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\u3002<\/p>\n

6.\/proc \u76ee\u5f55<\/b><\/p>\n

\/proc \u76ee\u5f55\u662f\u4e00\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u63d0\u4f9b\u4e86\u5173\u4e8e\u7cfb\u7edf\u5185\u6838\u548c\u8fdb\u7a0b\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\/proc\/cpuinfo \u6587\u4ef6\u5305\u542b\u4e86\u6709\u5173 CPU \u7684\u4fe1\u606f\u3002<\/p>\n

7.\/var \u76ee\u5f55<\/b><\/p>\n

\/var \u76ee\u5f55\u5305\u542b\u4e86\u7ecf\u5e38\u53d8\u5316\u7684\u6587\u4ef6\uff0c\u5982\u65e5\u5fd7\u3001\u90ae\u4ef6\u548c\u4e34\u65f6\u6587\u4ef6\u7b49\u3002\u4f8b\u5982linux\u57f9\u8bad\u73ed\uff0c\/var\/log\/messages \u6587\u4ef6\u5305\u542b\u4e86\u7cfb\u7edf\u65e5\u5fd7\u4fe1\u606f\u3002<\/p>\n

8.\/home \u76ee\u5f55<\/b><\/p>\n

linux\u5220\u9664\u67d0\u79cd\u7c7b\u578b\u6587\u4ef6_linux\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u7c7b\u578b_\u5982\u4f55\u5c06\u672c\u673a\u4e0a\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\u865a\u62df\u673a\u4e0b\u7684linux\u7cfb\u7edf\u4e0b<\/p>\n

\/home \u76ee\u5f55\u5b58\u50a8\u4e86\u6240\u6709\u7528\u6237\u4e3b\u76ee\u5f55\u7684\u4f4d\u7f6e\u3002\u6bcf\u4e2a\u7528\u6237\u90fd\u6709\u4e00\u4e2a\u81ea\u5df1\u7684\u4e3b\u76ee\u5f55\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u7528\u4e8e\u5b58\u50a8\u7528\u6237\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\/home\/john \u662f\u7528\u6237 john \u7684\u4e3b\u76ee\u5f55\u3002<\/p>\n

\u603b\u7ed3<\/p>\n

\u5728Linux\u7cfb\u7edf\u4e2dlinux\u6559\u7a0b\uff0c\u6839\u76ee\u5f55\u4e0b\u6709\u5f88\u591a\u4e0d\u540c\u7c7b\u578b\u7684\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\u3002\u6bcf\u4e2a\u5b50\u76ee\u5f55\u90fd\u6709\u5176\u81ea\u5df1\u7684\u7528\u9014\u548c\u529f\u80fd\u3002\u638c\u63e1\u8fd9\u4e9b\u76ee\u5f55\u7ed3\u6784\u5bf9\u4e8e\u7406\u89e3Linux\u7cfb\u7edf\u975e\u5e38\u91cd\u8981\u3002\u901a\u8fc7\u672c\u6587\u4ecb\u7ecd\u7684\u5185\u5bb9\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u7406\u89e3Linux\u4e2d\u5404\u4e2a\u76ee\u5f55\u7684\u4f5c\u7528\uff0c\u4ece\u800c\u66f4\u597d\u5730\u7ba1\u7406\u548c\u4f7f\u7528\u60a8\u7684Linux\u7cfb\u7edf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdLinux\u6587\u4ef6\u7cfb\u7edf\u4e2d\u5404\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u76ee\u5f55\u3002\u76ee\u5f55\u5305\u542b\u4e86\u7528\u6237\u5b89\u88c5\u8f6f\u4ef6\u548c\u6570\u636e\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u76ee\u5f55\u5305\u542b\u4e86\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6\u3002\u76ee\u5f55\u5305\u542b\u4e86\u6240\u6709\u7684\u8bbe\u5907\u6587\u4ef6\u3002\u76ee\u5f55\u662f\u4e00\u4e2a\u865a\u62df\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u63d0\u4f9b\u4e86\u5173\u4e8e\u7cfb\u7edf\u5185\u6838\u548c\u8fdb\u7a0b\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u6587\u4ef6\u5305\u542b\u4e86\u7cfb\u7edf\u65e5\u5fd7\u4fe1\u606f\u3002\u6bcf\u4e2a\u7528\u6237\u90fd\u6709\u4e00\u4e2a\u81ea\u5df1\u7684\u4e3b\u76ee\u5f55\uff0c\u8fd9\u4e2a\u76ee\u5f55\u901a\u5e38\u7528\u4e8e\u5b58\u50a8\u7528\u6237\u6570\u636e\u548c\u914d\u7f6e\u6587\u4ef6\u3002\u5728Linux\u7cfb\u7edf\u4e2d\uff0c\u6839\u76ee\u5f55\u4e0b\u6709\u5f88\u591a\u4e0d\u540c\u7c7b\u578b\u7684\u5b50\u76ee\u5f55\u548c\u6587\u4ef6\u3002<\/p>\n","protected":false},"author":1,"featured_media":272134,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-272133","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\/272133","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=272133"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/272133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/272134"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=272133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=272133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=272133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}