Command Line Basics: Count Files

January 21, 2010 by · 4 Comments
Filed under: command line, HowTo, linux 

You may have an occasion that you want to know the number of files in a directory. There are a couple of simple ways to do this. The first way is to list the files with ls and count them with wc. No, wc doesn't stand for the place you go to relieve yourself; in this case, it stands for word count. The command looks like this: Read more