Count files in a folder recursively

May 30, 2009

To count the number of files in the current folder and in all of its subfolders (recursively):
find . -type f | wc -l
To count the number of files and folders in the current folder and in all of its subfolders (recursively):
find . | wc -l

blog comments powered by Disqus

Previous post:

Next post: