统计目录文件数 find ./ -type f|wc -l //faster ls -l|grep "^-"|wc -l http://azaleasays.com/2008/01/30/linux-file-number-in-a-directory/