Skip to content

Count files in a folder recursively

Terminal window
find . -type f | wc -l

To count the number of files and folders in the current folder and in all of its subfolders (recursively):

Terminal window
find . | wc -l