{"id":8064,"date":"2020-06-22T15:59:46","date_gmt":"2020-06-22T07:59:46","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8064"},"modified":"2020-06-23T15:52:04","modified_gmt":"2020-06-23T07:52:04","slug":"namei","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/namei","title":{"rendered":"namei\u547d\u4ee4 – \u5217\u51fa\u4e00\u4e2a\u8def\u5f84\u4e2d\u6240\u6709\u7684\u6210\u5206"},"content":{"rendered":"\n
namei\u547d\u4ee4\u901a\u5e38\u53ef\u4ee5\u7528\u5728\u51fa\u73b0\u6743\u9650\u95ee\u9898\u65f6\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u4efb\u4f55 UNIX \u6587\u4ef6\uff0c\u5982\u7b26\u53f7\u94fe\u63a5\u3001\u6587\u4ef6\u3001\u76ee\u5f55\u7b49\u3002\u4f7f\u7528namei\u53ef\u4ee5\u5217\u51fa\u8def\u5f84\u4e2d\u6240\u6709\u6210\u5206\u7684\u4fe1\u606f\uff0c\u5305\u542b\u7b26\u53f7\u94fe\u63a5\u3002\u901a\u8fc7\u53c2\u6570\u53ef\u4ee5\u663e\u793a\u51fa\u5305\u62ec\u6743\u9650\u3001\u6240\u6709\u8005\u548c\u6240\u5c5e\u7ec4\u7b49\u4fe1\u606f\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>namei [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u8fde\u7ea7\u67e5\u770b\u6587\u4ef6\u6743\u9650\uff1a<\/p>\n\n\n\n \u67e5\u770b\u6587\u4ef6\u6240\u5c5e\u7ec4\uff1a<\/p>\n\n\n\n \u4ee5\u957f\u5217\u8868\u683c\u5f0f\u663e\u793a\uff1a<\/p>\n\n\n\n namei\u547d\u4ee4\u901a\u5e38\u53ef\u4ee5\u7528\u5728\u51fa\u73b0\u6743\u9650\u95ee\u9898\u65f6\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u4efb\u4f55 UNIX \u6587\u4ef6\uff0c\u5982\u7b26\u53f7\u94fe\u63a5\u3001\u6587\u4ef6\u3001\u76ee\u5f55\u7b49\u3002\u4f7f\u7528nam […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8064"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=8064"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8064\/revisions"}],"predecessor-version":[{"id":8101,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8064\/revisions\/8101"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-m, --modes <\/td> \u663e\u793a\u6bcf\u4e2a\u6587\u4ef6\u7684\u6a21\u5f0f\u4f4d<\/td><\/tr> -o, --owners <\/td> \u663e\u793a\u6587\u4ef6\u7684\u7528\u6237\u548c\u7528\u6237\u7ec4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# namei -m \/usr\/local\/sbin\/<\/pre>\n\n\n\n
[root@linuxcool ~]# namei -o \/etc\/hosts<\/pre>\n\n\n\n
[root@linuxcool ~]# namei -l \/etc\/hosts<\/pre>\n","protected":false},"excerpt":{"rendered":"