count file in directory linux recursive loop code example Example: count files recursively linux find DIR_NAME -type f | wc -l