OS Manuals

/usr/bin/wc

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running wc --help (exit 0). permalink

Print newline, word, and byte counts for each FILE, and a total line if more than one FILE is
specified.

Usage: wc [OPTION]... [FILE]...

Arguments:
  [files]...

Options:
  -c, --bytes            print the byte counts
  -m, --chars            print the character counts
      --files0-from <F>  read input from the files specified by
                         NUL-terminated names in file F;
                         If F is - then read names from standard input
  -l, --lines            print the newline counts
  -L, --max-line-length  print the length of the longest line
      --total <WHEN>     when to print a line with total counts;
                         WHEN can be: auto, always, only, never
  -w, --words            print the word counts
  -h, --help             Print help
  -V, --version          Print version
Options (9)
OptionDescriptionSource
-c, --bytesprint the byte countshelp + man
-m, --charsprint the character countshelp + man
--files0-from Fread input from the files specified by NUL-terminated names in file F;help + man
-l, --linesprint the newline countshelp + man
-L, --max-line-lengthprint the length of the longest linehelp + man
--total WHENwhen to print a line with total counts;help + man
-w, --wordsprint the word countshelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.