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:

  1. newline
  2. word
  3. character
  4. byte
  5. 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 file F; and if F is -, 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:


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 ๐Ÿฆ‹


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