linux count number of files in folder recursively code example Example: count files recursively linux find DIR_NAME -type f | wc -l