command to find no of files on a folder in linux OS

How to find the no of files on a particular folder

ls -l | wc -l

Say If you want to find a specific files nos, You can use the below command.

for eg. you want to find .gz files

ls *.gz -l | wc -l

About ilangovan ramasamy

I am a IT manager on a Corporate co. Started My Career In a Internet Center. having 10 years on Experience on IT. Very much Interested in knowing New technologies & gadgets. Wrote many Articles & how to’s for Computer Related issues. As I am in to hosting industry We face many issues on work. I thought of sharing my knowledge with you and writing so. If you guys feel something is interesting & helpful, Please do comment on it.

View all posts by ilangovan ramasamy →


This site uses Akismet to reduce spam. Learn how your comment data is processed.