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