| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1. |
| 2 |
.TH WC "1" "February 2026" "GNU coreutils 9.10" "User Commands" |
| 3 |
.SH NAME |
| 4 |
wc \- print newline, word, and byte counts for each file |
| 5 |
.SH SYNOPSIS |
| 6 |
.B wc |
| 7 |
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]... |
| 8 |
.br |
| 9 |
.B wc |
| 10 |
[\fI\,OPTION\/\fR]... \fI\,--files0-from=F\/\fR |
| 11 |
.SH DESCRIPTION |
| 12 |
.\" Add any additional description here |
| 13 |
.PP |
| 14 |
Print newline, word, and byte counts for each FILE, and a total line if |
| 15 |
more than one FILE is specified. A word is a nonempty sequence of non white |
| 16 |
space delimited by white space characters or by start or end of input. |
| 17 |
.PP |
| 18 |
With no FILE, or when FILE is \-, read standard input. |
| 19 |
.PP |
| 20 |
The options below may be used to select which counts are printed, always in |
| 21 |
the following order: newline, word, character, byte, maximum line length. |
| 22 |
.TP |
| 23 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc-c'\fB\-c, \-\-bytes\fP\X'tty: link' |
| 24 |
print the byte counts |
| 25 |
.TP |
| 26 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc-m'\fB\-m, \-\-chars\fP\X'tty: link' |
| 27 |
print the character counts |
| 28 |
.TP |
| 29 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc-l'\fB\-l, \-\-lines\fP\X'tty: link' |
| 30 |
print the newline counts |
| 31 |
.TP |
| 32 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc--debug'\fB\-\-debug\fP\X'tty: link' |
| 33 |
indicate what line count acceleration is used |
| 34 |
.TP |
| 35 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc--files0-from'\fB\-\-files0\-from=F\fP\X'tty: link' |
| 36 |
read input from the files specified by |
| 37 |
NUL\-terminated names in file F; |
| 38 |
If F is \-, read names from standard input |
| 39 |
.TP |
| 40 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc-L'\fB\-L, \-\-max\-line\-length\fP\X'tty: link' |
| 41 |
print the maximum display width |
| 42 |
.TP |
| 43 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc-w'\fB\-w, \-\-words\fP\X'tty: link' |
| 44 |
print the word counts |
| 45 |
.TP |
| 46 |
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#wc--total'\fB\-\-total=WHEN\fP\X'tty: link' |
| 47 |
when to print a line with total counts; |
| 48 |
WHEN can be: auto, always, only, never |
| 49 |
.TP |
| 50 |
\X'tty: link https://www.gnu.org/software/coreutils/wc#wc--help'\fB\-\-help\fP\X'tty: link' |
| 51 |
display this help and exit |
| 52 |
.TP |
| 53 |
\X'tty: link https://www.gnu.org/software/coreutils/wc#wc--version'\fB\-\-version\fP\X'tty: link' |
| 54 |
output version information and exit |
| 55 |
.SH AUTHOR |
| 56 |
Written by Paul Rubin and David MacKenzie. |
| 57 |
.SH "REPORTING BUGS" |
| 58 |
Report bugs to: bug\[email protected] |
| 59 |
.br |
| 60 |
GNU coreutils home page: <https://www.gnu.org/software/coreutils/> |
| 61 |
.br |
| 62 |
General help using GNU software: <https://www.gnu.org/gethelp/> |
| 63 |
.br |
| 64 |
Report any translation bugs to <https://translationproject.org/team/> |
| 65 |
.SH "SEE ALSO" |
| 66 |
Full documentation <https://www.gnu.org/software/coreutils/wc> |
| 67 |
.br |
| 68 |
or available locally via: info \(aq(coreutils) wc invocation\(aq |
| 69 |
.PP |
| 70 |
.br |
| 71 |
Packaged by Debian (9.10\-1) |
| 72 |
.br |
| 73 |
Copyright \(co 2026 Free Software Foundation, Inc. |
| 74 |
.br |
| 75 |
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. |
| 76 |
.br |
| 77 |
This is free software: you are free to change and redistribute it. |
| 78 |
.br |
| 79 |
There is NO WARRANTY, to the extent permitted by law. |