{"id":278114,"date":"2023-07-22T13:48:05","date_gmt":"2023-07-22T05:48:05","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=278114"},"modified":"2023-07-22T13:48:05","modified_gmt":"2023-07-22T05:48:05","slug":"lzlssmys","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lzlssmys.html","title":{"rendered":"ls\u5728linux\u662f\u4ec0\u4e48\u610f\u601d\uff1f"},"content":{"rendered":"
<\/p>\n
\u5728 Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c ls\u662f\u4e00\u79cd\u547d\u4ee4\uff0c\u7528\u4e8e\u5728\u591a\u4e2a\u8fdb\u7a0b\u4e4b\u95f4\u5207\u6362\uff0c\u4ee5\u8fd4\u56de\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002ls\u547d\u4ee4\u4e0e syslib\u547d\u4ee4\u662f\u540c\u4e00\u7c7b\u578b\u7684\u547d\u4ee4\uff0c\u90fd\u7528\u4e8e\u5207\u6362\u8fdb\u7a0b\u3002syslib\u662f\u4e00\u79cd\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\uff0c\u5141\u8bb8\u7528\u6237\u8bbf\u95ee\u67d0\u4e9b\u5185\u6838\u670d\u52a1\u548c\u9a71\u52a8\u7a0b\u5e8f\u7684\u5e93\u3002\u5728 Linux\u7cfb\u7edf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 syslib\u547d\u4ee4\u8fd4\u56de\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u548c\u591a\u4e2a\u5176\u4ed6\u8fdb\u7a0b\u3002<\/p>\n
\u4e0b\u9762\u5c06\u4ecb\u7ecd\u4e24\u4e2a\u5178\u578b\u7684 ls\u547d\u4ee4\u3002\u867d\u7136\u5b83\u4eec\u770b\u8d77\u6765\u5f88\u76f8\u4f3c\uff0c\u4f46\u662f\u5b83\u4eec\u5b9e\u9645\u4e0a\u662f\u5b8c\u5168\u4e0d\u540c\u7684\u3002\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u8bf7\u53c2\u89c1 Linux\u4f7f\u7528\u624b\u518c\uff08linux permissions\uff09\uff0c\u5728\u624b\u518c\u4e2d\u4f60\u53ef\u4ee5\u627e\u5230\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n
1.\u57fa\u672c\u547d\u4ee4<\/p>\n
\u5b83\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n
\u57fa\u672c\u547d\u4ee4\uff1a\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\uff0c\u4f60\u53ef\u4ee5\u5207\u6362\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u3001\u8c03\u7528\u5176\u4ed6\u5185\u6838\u670d\u52a1\u6216\u8fd4\u56de\u5176\u4ed6\u8fdb\u7a0b\u3002<\/p>\n
-m\u53c2\u6570\uff1a\u8bbe\u7f6e\u4f60\u60f3\u5207\u6362\u7684\u8fdb\u7a0b\u7684\u4f18\u5148\u7ea7\uff08systemrelay-of-operations\uff09\u3002\u5982\u679c\u4f7f\u7528-m\u53c2\u6570\uff0c\u5219\u5728\u4e00\u4e2a\u8fdb\u7a0b\u5207\u6362\u65f6\uff0c\u5c06\u4ece\u6700\u540e\u8fd0\u884c\u7684\u8fdb\u7a0b\u5f00\u59cb\u3002<\/p>\n
-v\u53c2\u6570\uff1a\u7528\u6765\u8bbe\u7f6e\u4f60\u60f3\u8981\u5207\u6362\u7684\u4e0b\u4e00\u4e2a\u8fdb\u7a0b\u3002\u4f8b\u5982\uff0c\u4f60\u60f3\u628a\u5f53\u524d\u8fdb\u7a0b\u5207\u6362\u5230\u4e00\u4e2a\u6b63\u5728\u5173\u95ed\u7684\u6587\u4ef6\u5939\uff08pwd\uff09\u4e2d\uff0c\u90a3\u4e48\uff0c\u5728\u8bbe\u7f6e\u4e86-v\u53c2\u6570\u540e\uff0c\u5c31\u53ef\u4ee5\u6267\u884c-v\u547d\u4ee4\u8fdb\u884c\u5207\u6362\u3002<\/p>\n
-h\u53c2\u6570\uff1a\u7528\u6765\u8bbe\u7f6e\u4f60\u60f3\u8981\u4ece\u54ea\u4e9b\u5185\u6838\u670d\u52a1\u4e2d\u8c03\u7528\u3002\u4f8b\u5982\uff0c\u4f60\u60f3\u5728\u4e00\u4e2a\u6b63\u5728\u5173\u95ed\u7684\u6587\u4ef6\u5939\uff08pwd\uff09\u4e2d\u8c03\u7528 backproxy\u670d\u52a1\u6765\u6253\u5f00\u5b83\u3002\u8bf7\u6ce8\u610f\uff0c\u4e0d\u80fd\u4f7f\u7528-h\u53c2\u6570\u6765\u8fd4\u56de\u4f60\u60f3\u8981\u8c03\u7528\u7684\u5185\u6838\u670d\u52a1\u3002<\/p>\n
2.\u5207\u6362\u8fdb\u7a0b\u547d\u4ee4<\/p>\n
\u4e0b\u9762\u7684\u547d\u4ee4\u5c06\u4ece\u4e00\u4e2a\u8fdb\u7a0b\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u76f4\u5230\u8fd4\u56de\u5230\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002\u8fd9\u4e2a\u547d\u4ee4\u7684\u540d\u79f0\u662f ls\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u5728\u591a\u4e2a\u8fdb\u7a0b\u4e4b\u95f4\u5207\u6362\u3002<\/p>\n
\u9996\u5148\uff0c\u4f60\u9700\u8981\u5199\u4e00\u4e2a\u7b80\u77ed\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u3002\u5982\u679c\u4f60\u60f3\u8981\u4e00\u4e2a\u7b80\u77ed\u7684\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8bf7\u4f7f\u7528\u7c7b\u4f3c\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/p>\n
\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c ls\u4f1a\u8fd4\u56de\u7b2c\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u7136\u540e\u518d\u8fd4\u56de\u7b2c\u4e8c\u4e2a\u3002\u6240\u4ee5\uff0c\u4f60\u53ef\u4ee5\u5207\u6362\u5230\u8fd9\u4e24\u4e2a\u8fdb\u7a0b\u5e76\u8fd4\u56de\u5b83\u4eec\u7684\u540d\u79f0\u3002<\/p>\n
\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u8f93\u5165 ls\u547d\u4ee4\u540e\uff0c\u5c06\u4f1a\u51fa\u73b0\u4e00\u4e2a\u8fd9\u6837\u7684\u547d\u4ee4\u63d0\u793a\u7b26\uff1a<\/p>\n
\u8fd9\u4e2a\u547d\u4ee4\u4e0e\u7b2c\u4e00\u4e2a\u7c7b\u4f3c\u3002ls\u548c syslib\u4e24\u4e2a\u547d\u4ee4\u90fd\u662f\u5e38\u7528\u547d\u4ee4\u4e4b\u4e00\uff0c\u4f46\u662f\u5b83\u4eec\u6709\u5f88\u591a\u4e0d\u540c\u4e4b\u5904\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5b83\u4eec\u4e4b\u95f4\u7684\u5dee\u5f02\u3002<\/p>\n
3.\u603b\u7ed3<\/p>\n
ls\u547d\u4ee4\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5728\u591a\u4e2a\u8fdb\u7a0b\u4e4b\u95f4\u5207\u6362\uff0c\u8fd9\u4f7f\u5f97\u5b83\u7279\u522b\u9002\u5408\u4e8e\u90a3\u4e9b\u60f3\u8981\u5feb\u901f\u8bbf\u95ee\u670d\u52a1\u7684\u4eba\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 ls\u547d\u4ee4\u6765\u5feb\u901f\u5730\u56de\u6eda\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\uff0c\u800c\u4e0d\u9700\u8981\u6267\u884c\u5176\u4ed6\u4efb\u4f55\u547d\u4ee4\u3002\u4f46\u662f\uff0c\u4e0e\u5176\u4ed6\u5e38\u7528\u7684\u8fdb\u7a0b\u5207\u6362\u5de5\u5177\u76f8\u6bd4\uff0c ls\u547d\u4ee4\u4ecd\u7136\u6709\u4e00\u4e9b\u5c40\u9650\u6027\uff1a<\/p>\n
l. ls\u547d\u4ee4\u65e0\u6cd5\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u4e2d\u5207\u6362\u3002\u5b83\u4e0d\u80fd\u5728\u540c\u4e00\u4e2a\u6587\u4ef6\u4e2d\u4ece\u4e00\u4e2a\u76ee\u5f55\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u3002\u9664\u975e\u4f60\u6709\u591a\u4e2a\u6587\u4ef6\u8981\u7ba1\u7406\uff0c\u5426\u5219\u8fd9\u662f\u4e0d\u53ef\u80fd\u7684\u3002<\/p>\n
l. ls\u547d\u4ee4\u662f\u4e00\u4e2a\u5f88\u5927\u7684\u547d\u4ee4\u884c\u53c2\u6570\u7ec4\uff0c\u8fd9\u4e9b\u53c2\u6570\u7ec4\u63a7\u5236\u7740\u5f88\u591a\u5176\u4ed6\u8bbe\u7f6e\uff0c\u4f8b\u5982\u4ece\u4e00\u4e2a\u76ee\u5f55\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\u3002<\/p>\n
l. ls\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u5feb\u901f\u5730\u5207\u6362\u8fdb\u7a0b\uff08\u800c\u4e14\u4e0d\u9700\u8981\u8c03\u7528\u5176\u4ed6\u8fdb\u7a0b\uff09\u3002\u4f46\u662f\uff0c\u5b83\u5e76\u4e0d\u603b\u662f\u652f\u6301\u4f60\u60f3\u8981\u7684\u90a3\u79cd\u529f\u80fd\uff1a\u5982\u679c\u4f60\u60f3\u8981\u8fd4\u56de\u5f53\u524d\u7684\u8fdb\u7a0b\u800c\u4e0d\u662f\u4efb\u4f55\u5176\u4ed6\u8fdb\u7a0b\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u4f7f\u7528 syslib\u547d\u4ee4\u6216 pipe\u547d\u4ee4\u3002\u4f7f\u7528\u8fd9\u4e9b\u547d\u4ee4\u6765\u6267\u884c\u4e0d\u540c\u7c7b\u578b\u7684\u4efb\u52a1\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u65f6\u95f4\u548c\u7cbe\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5728 Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c ls\u662f\u4e00\u79cd\u547d\u4ee4\uff0c\u7528\u4e8e\u5728\u591a\u4e2a\u8fdb\u7a0b\u4e4b\u95f4\u5207\u6362\uff0c\u4ee5\u8fd4\u56de\u5f53\u524d\u8fd0\u884c\u7684\u8fdb\u7a0b\u3002ls\u547d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[],"class_list":["post-278114","post","type-post","status-publish","format-standard","hentry","category-tougao"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/278114","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=278114"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/278114\/revisions"}],"predecessor-version":[{"id":278117,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/278114\/revisions\/278117"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=278114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=278114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=278114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}