{"id":345,"date":"2019-04-11T23:25:40","date_gmt":"2019-04-11T15:25:40","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=345"},"modified":"2022-05-09T16:24:38","modified_gmt":"2022-05-09T08:24:38","slug":"rmdir","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/rmdir","title":{"rendered":"rmdir\u547d\u4ee4 – \u5220\u9664\u7a7a\u76ee\u5f55\u6587\u4ef6"},"content":{"rendered":"\n

rmdir\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cremove directory\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u5220\u9664\u7a7a\u76ee\u5f55\u6587\u4ef6\u3002rmdir\u547d\u4ee4\u4ec5\u80fd\u591f\u5220\u9664\u7a7a\u5185\u5bb9\u7684\u76ee\u5f55\u6587\u4ef6\uff0c\u5982\u9700\u5220\u9664\u975e\u7a7a\u76ee\u5f55\u65f6\uff0c\u5219\u9700\u8981\u4f7f\u7528\u5e26\u6709-R\u53c2\u6570\u7684rm\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\u3002\u800crmdir\u547d\u4ee4\u7684-p\u9012\u5f52\u5220\u9664\u64cd\u4f5c\u4ea6\u4e0d\u610f\u5473\u7740\u80fd\u5220\u9664\u76ee\u5f55\u4e2d\u5df2\u6709\u7684\u6587\u4ef6\uff0c\u800c\u662f\u8981\u6c42\u6bcf\u4e2a\u5b50\u76ee\u5f55\u90fd\u5fc5\u987b\u662f\u7a7a\u7684\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f :\u00a0<\/strong> rmdir [\u53c2\u6570] \u76ee\u5f55<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-p<\/td>\u7528\u9012\u5f52\u7684\u65b9\u5f0f\u5220\u9664\u6307\u5b9a\u7684\u76ee\u5f55\u8def\u5f84\u4e2d\u7684\u6240\u6709\u7236\u7ea7\u76ee\u5f55\uff0c\u975e\u7a7a\u5219\u62a5\u9519<\/td><\/tr>
-v<\/td>\u663e\u793a\u547d\u4ee4\u7684\u8be6\u7ec6\u6267\u884c\u8fc7\u7a0b<\/td><\/tr>
-- -- help<\/td>\u663e\u793a\u547d\u4ee4\u7684\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr>
-- -- version<\/td>\u663e\u793a\u547d\u4ee4\u7684\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5220\u9664\u6307\u5b9a\u7684\u7a7a\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rmdir Documents<\/strong><\/pre>\n\n\n\n

\u5220\u9664\u6307\u5b9a\u7684\u7a7a\u76ee\u5f55\uff0c\u53ca\u5176\u5185\u7684\u5b50\u7a7a\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rmdir -p Documents<\/strong><\/pre>\n\n\n\n

\u5220\u9664\u6307\u5b9a\u7684\u7a7a\u76ee\u5f55\uff0c\u5e76\u663e\u793a\u5220\u9664\u7684\u8fc7\u7a0b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rmdir -v Documents<\/strong>\nrmdir: removing directory, 'Documents'<\/pre>\n","protected":false},"excerpt":{"rendered":"

rmdir\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cremove directory\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u5220\u9664\u7a7a\u76ee\u5f55\u6587\u4ef6\u3002rmdir […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/345"}],"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=345"}],"version-history":[{"count":17,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":9385,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/345\/revisions\/9385"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}