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