WC(1)

πŸ“¦
version 9.10 Β· 5 versions
, in ubuntu stonking

🌸 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 file F. And if F is -, 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. WHEN can 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:


πŸ”₯ SEE ALSO πŸ”₯


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