Wc

From LinuxIntro
Jump to: navigation, search

wc is a command to output the word count. wc -l counts the number of lines that are output. wc is typically used with piping like this:

ls -1 | wc -l

Counts how many files exist.