how to know in linux c how much files there is in directory code example Example: bash how many files in a directory ls -1q log* | wc -l