WC(1) General Commands Manual WC(1)

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

wc [OPTION]... [FILE]...

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

print the byte counts
print the character counts
read input from the files specified by NUL-terminated names in file F; If F is - then read names from standard input
print the newline counts
print the length of the longest line
when to print a line with total counts; WHEN can be: auto, always, only, never
print the word counts
Print help
Print version
[files]

v(uutils coreutils) 0.11.0

2026-09-01