grep count the number of files in directory and child directories code example Example: count files recursively linux find DIR_NAME -type f | wc -l