linux command to get number of files in directory code example Example: bash command to find the number of files in a directory ls -1q | wc -l