•Arnošt Havelka
WC - Count Words & Chars
Use wc to count words and characters in files.
Start Interactive LessonWord Count with wc
The wc (word count) command is a simple but powerful utility for analyzing text data.
Counting Words and Characters
By default, wc shows lines, words, and byte counts. You can use flags to get specific data:
-w: Count words-c: Count characters (bytes)-l: Count lines
Usage:wc-w
-w
Count words
-c
Count characters
Knowledge Check
1 / 1Which flag counts words?
References
These Microsoft Learn and Windows documentation links provide authoritative details for the commands used in this article.