{"id":110967,"date":"2024-12-26T15:26:11","date_gmt":"2024-12-26T07:26:11","guid":{"rendered":"https:\/\/gulass.cn\/?p=110967"},"modified":"2024-12-26T15:26:11","modified_gmt":"2024-12-26T07:26:11","slug":"linux-code-methon","status":"publish","type":"post","link":"https:\/\/gulass.cn\/linux-code-methon.html","title":{"rendered":"Linux\u5220\u9664\u4e71\u7801\u6587\u4ef6\u7684\u65b9\u6cd5"},"content":{"rendered":"
\u5f53\u6587\u4ef6\u540d\u4e3a\u4e71\u7801\u7684\u65f6\u5019,\u65e0\u6cd5\u901a\u8fc7\u952e\u76d8\u8f93\u5165\u6587\u4ef6\u540d,\u6240\u4ee5\u5728\u7ec8\u7aef\u4e0b\u5c31\u4e0d\u80fd\u76f4\u63a5\u5229\u7528rm,<\/p>\n
mv\u7b49\u547d\u4ee4\u7ba1\u7406\u6587\u4ef6\u4e86\u3002<\/p>\n
\u4f46\u662f\u6211\u4eec\u77e5\u9053\u6bcf\u4e2a\u6587\u4ef6\u90fd\u6709\u4e00\u4e2a i \u8282\u70b9\u53f7,\u6211\u4eec\u53ef\u4ee5\u8003\u8651\u901a\u8fc7 i \u8282\u70b9\u53f7\u6765\u7ba1\u7406\u6587\u4ef6\u3002<\/p>\n
\u9996\u5148,\u6211\u4eec\u8981\u53d6\u5f97\u6587\u4ef6\u7684 i \u8282\u70b9\u53f7\u3002\u8fd9\u4e2a\u53ef\u4ee5\u901a\u8fc7ls<\/span>\u547d\u4ee4\u7684-i<\/span> \u9009\u9879\u83b7\u5f97\u5f97,\u4e5f\u53ef\u4ee5\u901a\u8fc7ll -i<\/span> \u6765\u83b7\u5f97\u3002<\/p>\n \u7b2c\u4e8c\u6b65,\u4f7f\u7528find<\/span>\u547d\u4ee4\u5c06\u6587\u4ef6\u540d\u4f20\u9012\u7ed9rm<\/span>\u547d\u4ee4\u3002<\/p>\n e.g:\u5220\u9664\u8282\u70b9\u4e3a12345\u7684\u4e71\u7801\u6587\u4ef6\u5939\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n \u6ce8\u610f\/;\u524d\u9762\u7684\u7a7a\u683c\u4e0d\u80fd\u5c11,\u5c11\u4e86\u5c31\u4f1a\u62a5\u9519\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.jsgho.net\/help\/fwq\/30237.html<\/a><\/p>\nfind .\/ -inum 12345 -print -exec rm {} -rf \/;<\/pre>\n
\n