如何在命令行上删除所有小于 xx kB 的文件
以下命令将删除当前目录及其子目录中所有小于 100 kB 的文件:
删除的文件无法恢复!
delete_small_files.sh
find . -type f -size -100k -exec rm -v {} \;Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow