Back

find how many files in a folder (快速查看某个目录下有多少文件)

发布时间: 2014-03-18 02:49:00

有个项目会写静态文件,结果发现一次就要写22W个文件。。。。 用LS根本无法实现,所以。。。 ( if there are a huge number of files in a folder , you can't use 'ls' to find files, instead, we should use : find.  ) 

sg552@youku:/sg552/workspace/test_nginx/static_files_popup_page$ find . -type f | wc -l
220164

sg552@youku:/sg552/workspace/test_nginx/static_files_popup_page$ du . -h
906M	.

Back