这是Centos 6.x.我尝试了一些命令,但它们没有用.
解决方法 Find有它自己的-delete选项find /home -type f -size +100M -delete
应该做你想做的事.请注意放置-delete选项的位置
Warnings: Don’t forget that the find command line is evaluated
as an Expression,so putting -delete first will make find try to
delete everything below the starting points you specifIEd.
如果你想在使用它之前测试它,那么你需要添加-depth,因为-delete暗示它.
find /home -type f -size +100M -depth总结
以上是内存溢出为你收集整理的linux – 在/ home /中查找大型文件(> 100 MB)以进行“清理”全部内容,希望文章能够帮你解决linux – 在/ home /中查找大型文件(> 100 MB)以进行“清理”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)