{"id":3348,"date":"2019-12-05T08:52:26","date_gmt":"2019-12-05T00:52:26","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=3348"},"modified":"2024-05-13T21:33:13","modified_gmt":"2024-05-13T13:33:13","slug":"linux%e5%88%a0%e9%99%a4%e5%a4%a7%e4%ba%8e%e6%88%96%e8%80%85%e5%b0%8f%e4%ba%8e%e5%9b%ba%e5%ae%9a%e5%a4%a7%e5%b0%8f%e7%9a%84%e6%96%87%e4%bb%b6%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/3348.html","title":{"rendered":"LINUX\u5220\u9664\u5927\u4e8e\u6216\u8005\u5c0f\u4e8e\u56fa\u5b9a\u5927\u5c0f\u7684\u6587\u4ef6\u547d\u4ee4"},"content":{"rendered":"
LINUX\u5220\u9664\u5927\u4e8e\/\u5c0f\u4e8e\u56fa\u5b9a\u5927\u5c0f\u7684\u6587\u4ef6<\/p>\n
find .\/ -name \"*\" -type f -size 0c | xargs -n 1 rm -f<\/pre>\n<\/div>\n<\/h3>\n
\u5220\u9664\u5f53\u524d\u76ee\u5f55\u4e0b\u9762\u6240\u6709 test \u6587\u4ef6\u5939\u4e0b\u9762\u7684\u6587\u4ef6<\/h3>\n
\nfind .\/ -name \"test\" -type d -exec rm -rf {} ;<\/pre>\n<\/div>\n<\/h3>\n
\u5220\u9664\u6587\u4ef6\u5939\u4e0b\u9762\u7684\u6240\u6709\u7684.py\u6587\u4ef6<\/h3>\n
\nfind .\/ -name '.py' -exec rm -rf {} ;<\/pre>\n<\/div>\n<\/h3>\n
\u663e\u793a\u5f53\u524d\u8def\u5f84\u4e0b\uff0c\u5927\u4e8e50M\u7684\u6587\u4ef6<\/h3>\n
\nfind .\/ -size +50M<\/pre>\n<\/div>\n<\/h3>\n
\u5220\u9664\u5f53\u524d\u8def\u5f84\u4e0b\uff0c\u5927\u4e8e50M\u7684\u6587\u4ef6<\/h3>\n
\nfind .\/ -size +50M -exec rm {} \\;<\/pre>\n<\/div>\n\u5220\u9664\u5f53\u524d\u8def\u5f84\u4e0b\uff0c\u6240\u6709\u6587\u4ef6\u5939\u91cc\u9762\u7684\u5927\u4e8e300k\u7684\u6587\u4ef6<\/p>\n
find .\/ -size +300k -exec rm {} \\;\r\n<\/code><\/pre>\n