count number of files in directory linux recursive code example
Example 1: count files recursively linux
find DIR_NAME -type f | wc -l
Example 2: bash how many files in a directory
ls -1q log* | wc -l
Example 3: how to count all files in a directory linux recursively
find DIR_NAME -type f | wc -l