I want to count all .class file in my project directory. I am working on ubuntu. I can list all the class file like this – It lists a lot of .class files. But I want to know the count of these .class files. Is there any way to do this in linux. Thanks. Answer Use wc -l. wc stands