资讯

find /data/log -type f -delete 1. 原理:find 直接调用系统接口,文件一个一个删,不经过 Shell 参数展开,稳! 我用time命令测试了一下删除时间,用了4秒,还是挺快的。 (2) 分批删除,用 xargs 控制删除数量 ...