how to count files in directory

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

你可能感兴趣的:(Directory)