count no of file in a directory in unix code example Example: count no of file in a directory in unix ls -1 | wc -l