删除目录下大小为0的文件

find ./ -name "*" -type f -size 0c | xargs -n 1 rm -f

 

删除当前目录下面所有 test 文件夹下面的文件        

 find ./ -name "test" -type d -exec rm -rf {} ;

 

删除文件夹下面的所有的.py文件

find ./ -name '.py' -exec rm -rf {} ;

 

显示当前路径下,大于50M的文件

find ./ -size +50M

 

删除当前路径下,大于50M的文件

find ./ -size +50M -exec rm {} \;

 

相关文章:

  • 2022-12-23
  • 2022-02-25
  • 2022-03-04
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-06-20
  • 2022-12-23
  • 2022-02-23
相关资源
相似解决方案