Count the number of files in a directory and sub-directories within that directory
Hi all,
i want to count the number of files in a particular directory(including the files in the ub-directory also).
i have tried with
ls -1lR | wc -l
it showing 1088
but when i give just
ls -l
it showing 9833.
Actually, there is sub-directoris which also have files. Please tell me how do i get the exact count.
|