count number of ordinary files iin adir code example
Example 1: count no of file in a directory in unix
ls -1 | wc -l
Example 2: bash command to find the number of files in a directory
ls -1q | wc -l
ls -1 | wc -l
ls -1q | wc -l