linux 使用find 命令查找文件,并删除

10 阅读1分钟
  1. 查找大文件

例如 查找当前目录小大于1000M的文件

find . -size +1000M

image.png

  1. 查找并删除
find . -size +1000M -exec rm {} ;

注意分号不能省略