{ claus.conrad }

Count files in a folder recursively

📅 May 29, 2009
⌛ 1 minute

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