[pappy@chmodx]:$ man wc

$ wc

Print newline, word, and byte counts

DOCUMENTEDSearch & textUbuntu 24.04 LTS baseline

Synopsis

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

What it does

Examples

Count lines
wc -l file.txt
Count words
wc -w file.txt
Count bytes
wc -c file.bin

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.