http://techgurulive.com/2009/08/09/how-to-count-files-in-the-current-directory-in-linux/
reference as above
ls -l |wc -l
CAUTION, the link of current foler also as a file ,so as common sense,the result
you should minus one ,that's you want
reference as above
ls -l |wc -l
CAUTION, the link of current foler also as a file ,so as common sense,the result
you should minus one ,that's you want
![](http://img.zemanta.com/pixy.gif?x-id=152f54d2-11c6-8138-817d-a2b81f265782)