http://arunonfire.blogspot.com/2007/11/linux-count-number-of-files-in-sub.htmlTo get the number of files in a directory including sub directories on Linux
Run ls -1R wc –l
e.g:
[root@HACK1 root]# ls -1R wc -l
29
[root@HACK1 root]#
Thanks to my friend shiva for providing this.
Related Articles: