统计目录文件数

find ./ -type f|wc -l

//faster

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

 

 

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

posted @ 2017-02-09 11:37  夜歌乘年少  阅读(164)  评论(1编辑  收藏  举报