{"id":294109,"date":"2024-11-03T04:02:21","date_gmt":"2024-11-02T20:02:21","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxtrhcdscwjz.html"},"modified":"2024-11-03T04:02:21","modified_gmt":"2024-11-02T20:02:21","slug":"lxtrhcdscwjz","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxtrhcdscwjz.html","title":{"rendered":"Linux \u7cfb\u7edf\u5982\u4f55\u5f7b\u5e95\u5220\u9664\u6587\u4ef6\uff1f\u8fd9\u7bc7\u6587\u7ae0\u544a\u8bc9\u4f60"},"content":{"rendered":"
PAGEPAGE#Linux<\/a>\u7cfb\u7edf\u5982\u4f55\u5f7b\u5e95\u5220\u6389\u6587\u4ef6Linux\u6709\u4e00\u4e2arm\u547d\u4ee4<\/a>(rmdir\u4e5f\u53ef\u4ee5\u5728rm\u91cc\u73b0\u5b9e),\u4e0d\u8fc7\u53ea\u662f\u7b80\u5355\u5220\u6389linux rar\uff0c\u8fd9\u4e2asrm\u547d\u4ee4\u5168\u79f0\u662fsecruerm\uff0c\u662f\u5b89\u5168\u79fb\u51fa\u7684\u610f\u601d\uff0c\u8fd9\u4e48Linux\u7cfb\u7edf\u5982\u4f55\u5f7b\u5e95\u5220\u6389\u6587\u4ef6\u5462\uff1f\u660e\u5929\u5c0f\u7f16\u4e0e\u4f60\u4eec\u5206\u4eab\u4e0bLinux\u7cfb\u7edf\u5982\u4f55\u5f7b\u5e95\u5220\u6389\u6587\u4ef6\u7684\u89e3\u51b3\u65b9\u5f0f\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u4e0d\u59a8\u4e86\u89e3\u4e0b\u3002Linux\u7cfb\u7edf\u5f7b\u5e95\u5220\u6389\u6587\u4ef6\u65b9\u5f0flinux\u5220\u6389\u76ee\u5f55\u5f88\u7b80\u5355\uff0c\u597d\u591a\u4eba\u8fd8\u662f\u4e60\u60ef\u7528rmdir\uff0c\u4e0d\u8fc7\u4e00\u65e6\u76ee\u5f55\u975e\u7a7a\uff0c\u5c31\u6df1\u9677\u6df1\u6df1\u7684\u70e6\u607c\u4e4b\u4e2d\uff0c\u5982\u4eca\u4f7f\u7528rm-rf\u547d\u4ee4\u5373\u53ef\u3002\u76f4\u63a5rm\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u8fc7\u8981\u52a0\u4e24\u4e2a\u53c2\u6570-rf\u5373\uff1arm-rf\u76ee\u5f55\u540d\u5b50\u5220\u6389\u76ee\u5f55\u3001\u6587\u4ef6rm(remove)\u529f\u80fd\u8bf4\u660e\uff1a\u5220\u6389\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u53e5\u578b\uff1arm[-dfirv][--help][--version][\u6587\u4ef6\u6216\u76ee\u5f55\u3002\u3002.]PAGEPAGE#\u8865\u5145\u8bf4\u660e\uff1a\u6267\u884crm\u6307\u4ee4\u53ef\u5220\u6389\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u5982\u6b32\u5220\u6389\u76ee\u5f55\u5fc5\u987b\u52a0\u4e0a\u53c2\u6570\u201d-r\u201d\uff0c\u5426\u5219\u9884\u8bbe\u4ec5\u4f1a\u5220\u6389\u6587\u4ef6\u3002\u53c2\u6570\uff1a-d\u6216ndash;directory\u76f4\u63a5\u628a\u6b32\u5220\u6389\u7684\u76ee\u5f55\u7684\u786c\u8054\u63a5\u6570\u636e\u5220\u62100,\u5220\u6389\u8be5\u76ee\u5f55\u3002-f\u6216ndash;force\u5f3a\u5236\u5220\u6389\u6587\u4ef6\u6216\u76ee\u5f55\u3002-i\u6216ndash;interactive\u5220\u6389\u65e2\u6709\u6587\u4ef6\u6216\u76ee\u5f55\u4e4b\u524d\u5148\u5bfb\u95ee\u7528\u6237\u3002<\/p>\n -r\u6216-R\u6216ndash;recursive\u9012\u5f52\u5904\u7406\uff0c\u5c06\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u53ca\u5b50\u76ee\u5f55\u4e00\u5e76\u5904\u7406\u3002-v\u6216ndash;verbose\u663e\u793a\u6307\u4ee4\u6267\u884c\u8fc7\u7a0b\u30021\u5220\u6389\u6587\u4ef6\u5939de\u300brm-rffileNamede\u300b-\u5220\u6389\u6587\u4ef6\u5939\u5b9e\u4f8b:rm-rf\/var\/log\/httpd\/access\u5c06\u4f1a\u5220\u6389\/var\/log\/httpd\/access\u76ee\u5f55\u4ee5\u53ca\u5176\u4e0b\u6240\u6709\u6587\u4ef6\u3001\u6587\u4ef6\u5939\u987b\u8981\u63d0\u9192\u7684\u662f\uff1a\u4f7f\u7528\u8fd9\u4e2arm-rf\u7684\u65f6\u4faf\u4e00\u5b9a\u8981\u5206\u5916\u7559\u795e\uff0clinux\u6ca1\u6709\u56de\u6536\u7ad9\u76842\u5220\u6389\u6587\u4ef6de\u300brm-ffileNamede\u300b\u4f7f\u7528rm-rf\u7684\u65f6\u4faf\u4e00\u5b9a\u8981\u5206\u5916\u7559\u795e\uff0clinux\u6ca1\u6709\u56de\u6536\u7ad9\u7684\u5220\u6389\u6307\u5b9a\u6587\u4ef6\u4e4b\u5916\u7684\u5176\u4ed6\u6587\u4ef6\u4e00\u3001Linux\u4e0b\u5220\u6389\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u5e38\u7528\u547d\u4ee4\u5982\u4e0b\uff1a\u5220\u6389\u6587\u4ef6\uff1armfile\u5220\u6389\u6587\u4ef6\u5939\uff1arm-rfdir\u987b\u8981\u6ce8\u610f\u7684\u662flinux\u9632\u706b\u5899\u8bbe\u7f6e\uff0crmdir\u53ea\u624d\u80fd\u5220\u6389\u7a7a\u6587\u4ef6\u5939\u3002\u4e8c\u3001\u5220\u9664\u5236\u8ba2\u6587\u4ef6(\u5939)\u4e4b\u5916\u7684\u6240\u6709\u6587\u4ef6\u5462\uff1f1\u3001\u65b9\u6cd51\uff0c\u6bd4\u8f83\u9ebb\u70e6\u7684\u505a\u6cd5\u662f\uff1a\u590d\u5236\u987b\u8981\u4fdd\u7559\u7684\u6587\u4ef6\u5230\u5176\u4ed6\u6587\u4ef6\u5939\uff0c\u4e4b\u540e\u5c06\u8be5\u76ee\u5f55\u5220\u6389\uff0c\u4e4b\u540e\u5c06\u987b\u8981\u4fdd\u7559\u7684\u8054\u901a\u56de\u53bb\u3002mvkeep\u3002\u3002\/#\u4fdd\u7559\u6587\u4ef6(\u5939)keeprm-rf*#\u5220\u6389\u5f53\u524d\u6587\u4ef6\u5939\u91cc\u7684\u6240\u6709\u6587\u4ef6mv\u3002\u3002\/keep\u3002\/#\u5c06\u539f\u5148\u7684\u4e1c\u897f\u8054\u901a\u56de\u53bb2\u3001\u65b9\u6cd52\uff0c\u987b\u8981\u5728\u5f53\u524d\u6587\u4ef6\u5939\u4e2d\u8fdb\u884c\uff1arm-rf!(keep)#\u5220\u6389keep\u6587\u4ef6\u4e4b\u5916\u7684\u6240\u6709\u6587\u4ef6rm-rf!(keep1|keep2)#\u5220\u6389keepl\u548ckeep2\u6587\u4ef6\u4e4b\u5916\u7684\u6240\u6709\u6587\u4ef6Linux\u4e2d\u5f7b\u5e95\u5220\u6389\u6587\u4ef6shred\u5f7b\u5e95\u5220\u6389\u6587\u4ef6\u7684\u65b9\u5f0f\uff1a$shred-ufileshred\u4f1a\u7528\u4e00\u4e9b\u968f\u673a\u5185\u5bb9\u8986\u76d6\u6587\u4ef6\u6240\u5728\u7684\u8282\u70b9\u548c\u6570\u636e\u5757\uff0c\u5e76\u5220\u6389\u6587\u4ef6\uff08-u\u53c2\u6570\uff09\u3002<\/p>\n <\/p>\n \u5047\u5982\u60f3\u6d88\u9664\u7684\u66f4\u5f7b\u5e95\u4e00\u70b9\u53ef\u4ee5\u52a0-z\u53c2\u6570linux\u547d\u4ee4\u6e05\u7a7a\u6587\u4ef6\u5185\u5bb9<\/strong>\uff0c\u610f\u601d\u662f\u5148\u7528\u968f\u673a\u6570\u636e\u586b\u5145\uff0c\u6700\u540e\u518d\u75280\u586b\u5145\u3002$shred-u-zfile\u53e6\u5916shred\u8fd8\u53ef\u4ee5\u6d88\u9664\u6574\u4e2a\u5206\u533a\u6216c\u76d8\uff0c\u4f8b\u5982\u60f3\u5f7b\u5e95\u6d88\u9664\/dev\/sdbl\u5206\u533a\u7684\u5185\u5bb9\u53ef\u4ee5\u8fd9\u6837\uff1a$shred\/dev\/sdbl\uff08\u6ce8\u610f\u4e0d\u8981\u52a0-u\u53c2\u6570\uff09shred\u7684\u8be6\u5c3d\u53c2\u6570:-f,--force\u4fee\u6539\u6743\u9650\u5bb9\u8bb8\u5199\u5165\uff08\u5982\u6709\u5fc5\u8981\uff09-n,--iterations=N\u91cd\u753bN\u6b21\uff0c\u9ed8\u8ba4\u4e3a3\u6b21--random-source\u4e8cFILE\u4ece\u6307\u5b9a\u6587\u4ef6\u8bfb\u53d6\u6570\u636e-slinux\u547d\u4ee4\u6e05\u7a7a\u6587\u4ef6\u5185\u5bb9<\/strong>\uff0c--size\u4e8cN\u5c06\u6587\u4ef6\u7c89\u788e\u4e3a\u56fa\u5b9a\u5927\u5c0f\uff08\u53ef\u4f7f\u7528\u540e\u7f00\u5982K\u3001M\u3001C\u7b49\uff09-u\uff0c--remove\u91cd\u753b\u540e\u622a\u77ed\u5e76\u79fb\u9664\u6587\u4ef6-v\uff0c--verbose\u663e\u793a\u8fdb\u5ea6-z\uff0c--zero-add\u75280\u8986\u76d6\u6570\u636endash;help\u663e\u793a\u5e2e\u52a9ndash;version\u663e\u793a\u7248\u672c\u4fe1\u606f\u91cc\u9762\u5c31\u662fLinux\u4e0b\u5f7b\u5e95\u5220\u6389\u6587\u4ef6\u7684\u65b9\u5f0f\u4ecb\u7ecd\u4e86\uff0c\u987b\u8981\u975e\u5e38\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8eLinux<\/p>\n","protected":false},"excerpt":{"rendered":" #Linux\u7cfb\u7edf\u600e\u4e48\u5f7b\u5e95\u5220\u9664\u6587\u4ef6Linux\u6709\u4e00\u4e2arm\u547d\u4ee4(rmdir\u4e5f\u53ef\u4ee5\u5728rm\u91cc\u73b0\u5b9e),\u4e0d\u8fc7\u53ea\u662f\u7b80\u5355\u5220\u9664\uff0c\u8fd9\u4e2asrm\u547d\u4ee4\u5168\u79f0\u662fsecruerm\uff0c\u662f\u5b89\u5168\u79fb\u51fa\u7684\u610f\u601d\uff0c\u90a3\u4e48Linux\u7cfb\u7edf\u600e\u4e48\u5f7b\u5e95\u5220\u9664\u6587\u4ef6\u5462\uff1f#\u8865\u5145\u8bf4\u660e\uff1a\u6267\u884crm\u6307\u4ee4\u53ef\u5220\u9664\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u5982\u6b32\u5220\u9664\u76ee\u5f55\u5fc5\u987b\u52a0\u4e0a\u53c2\u6570\u201d-r\u201d\uff0c\u5426\u5219\u9884\u8bbe\u4ec5\u4f1a\u5220\u9664\u6587\u4ef6\u3002<\/p>\n","protected":false},"author":1,"featured_media":294110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[2823,4016,4017,4018,4019],"class_list":["post-294109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-lxt-2","tag-rml-4","tag-sml-7","tag-aqyc","tag-cdscwj"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294109","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=294109"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294109\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294110"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}