# 删除文件大小小于2k的文件 find . -size -2k|xargs -n1 rm # 删除修改时间为30天前的文件 find . -mtime +30 -type f | xargs -n1 rm