WC(1)
๐ WC(1) โ word, line, and byte or character count ๐
okay bestie so this is wc, from the User Commands girlies of the manual. it counts stuff for you. it's giving โจeffortlessโจ. let's get into it ๐ซถ
โจ SYNOPSIS โจ
wc [OPTION]... [FILE]...
wc [OPTION]... --files0-from=F
๐ธ DESCRIPTION ๐ธ
So what it does is: it prints newline, word, and byte counts for each FILE, and it also gives you a total line if you handed it more than one FILE. cute, right?
And a word?? Bestie. A word is a nonempty sequence of non white space โ delimited by white space characters, or by the start or end of the input. that's it. that's the whole definition. periodt ๐
If you give it no FILE, or if FILE is -, it reads standard input. classic. it's flexible like that ๐
The options down below let you pick which counts get printed, and they always come out in this exact order, no negotiation, no cap:
- newline
- word
- character
- byte
- maximum line length
like that's just the order. the order is the order. ๐
๐ OPTIONS ๐
-c,--bytesโ print the byte counts. bytes, bestie. ๐-m,--charsโ print the character counts. chars >>> bytes, they're not the same thing and I need you to know that ๐-l,--linesโ print the newline counts. counting them newlines fr fr ๐ญ--debugโ tells you what line count acceleration is being used. yes it's spilling the tea on its own internals ๐--files0-from=Fโ reads input from the files named by NUL-terminated names inside fileF; and ifFis-, it takes those names from standard input. NUL-terminated. not newline-terminated. do not come for me ๐-L,--max-line-lengthโ prints the maximum display width โจ-w,--wordsโ prints the word counts ๐ฆ--total=WHENโ controls when to print that line with the total counts. WHEN can be:auto,always,only,neverโ those four, exactly those four, pick one ๐ซถ--helpโ display this help and exit. the classic escape hatch ๐--versionโ output version information and exit. so you can see who you're dealing with ๐
๐ AUTHOR ๐
Written by Paul Rubin and David MacKenzie. legends, honestly. we stan. ๐
๐ญ REPORTING BUGS ๐ญ
Found a bug? Do NOT suffer in silence, bestie, tell the people:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
๐ COPYRIGHT ๐
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. like, zero. none. don't come crying to us. ๐ญ
๐ฆ SEE ALSO ๐ฆ
- Full documentation <https://www.gnu.org/software/coreutils/wc>
- or available locally via:
info '(coreutils) wc invocation'
and that's the whole page, bestie!! this was GNU coreutils 9.12, dated September 2026, and it lives in section WC(1) of the manual. go count some words. slay. ๐โจ๐๐ซถ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms