WC(1)
πΈ NAME πΈ
wc β bestie, it prints the newline, word, and byte counts for each file π
β¨ SYNOPSIS β¨
wc [OPTION]... [FILE]...
wc [OPTION]... --files0-from=F
π DESCRIPTION π
Okay so wc is literally your counting bestie. For every single FILE you hand it, it prints the newline count, the word count, and the byte count β and if you give it more than one FILE, it hits you with a total line at the end too. And a "word"? It's a nonempty sequence of non white space, delimited by white space characters or by the start or end of input. No cap. π¦
If you give it no FILE at all, or if FILE is -, it reads standard input. Periodt. π
The options down there let you pick which counts get printed, and they always come out in this exact order: newline, word, character, byte, maximum line length. iykyk.
π OPTIONS π
-c,--bytesβ prints the byte counts. raw bytes, bestie π«Ά-m,--charsβ prints the character counts β¨-l,--linesβ prints the newline counts π--debugβ tells you which line count acceleration is being used. like, it's giving behind-the-scenes π--files0-from=Fβ reads input from the files named by NUL-terminated names inside fileF. And ifFis-, it reads those names from standard input π-L,--max-line-lengthβ prints the maximum display width π-w,--wordsβ prints the word counts π--total=WHENβ controls when a line with total counts gets printed.WHENcan be:auto,always,only,neverπ--helpβ displays this help and dips out π--versionβ outputs version info and exits π¦
π AUTHOR π
Written by Paul Rubin and David MacKenzie. iconic duo, honestly.
π REPORTING BUGS π
Found a bug? bestie, tell the right people:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
- Report any translation bugs to <https://translationproject.org/team/>
π₯ SEE ALSO π₯
- Full documentation: <https://www.gnu.org/software/coreutils/wc>
- or available locally via:
info '(coreutils) wc invocation'
Packaged by Ubuntu (9.10-1ubuntu2) 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. π (yes, that's real, please note it)
okay that's the whole thing, love u, go count some words πβ¨
GNU coreutils 9.10 Β· August 2026 β mwah, xoxo, see u in the next man page πππ§
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms