统计文件个数、删除空文件等Linux命令

reference:

https://www.linuxprobe.com/linux-ls-grep-wc.html

https://blog.csdn.net/developerof/article/details/79566570

统计文件个数(不递归):

ls -l | grep "^-" | wc -l


删除空文件:
find . -name "*" -type f -size 0c | xargs -n 1 rm -f

原文地址:https://www.cnblogs.com/gagaein/p/14236112.html