Audrey M. Roy Greenfeld

Quietly building the future.

Counting Files


To count the number of files in a directory that start with logo-:

$ ls logo-* | wc -l

wc is a command that counts the number of lines, words, and characters in a file or input stream. The -l option tells wc to count lines.