统计目录文件数

find ./ -type f|wc -l

//faster

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

http://azaleasays.com/2008/01/30/linux-file-number-in-a-directory/

原文地址:https://www.cnblogs.com/alfredsun/p/6381308.html