get file count folder linux recursively 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
find DIR_NAME -type f | wc -l
ls -1q log* | wc -l