command is used to count the number of lines, words, and characters in a file.
Observe what happens when you run the
command on the following file.
$ cat letter
Final exams are coming up next week.
Please send food, clothes, and
$ wc letter
9 17 101 letter
command tells you that this file has 9 lines, 17 words, and 101 characters.
You can display only the number of lines by using
option, the number of words by using the
option, or the number of characters by using the
option. Here is the
command using the
$ wc l letter
Click the exercise link below to practice using the
WC Command Exercise