The wc command
Count lines, words and bytes. Prints the number of lines, words and bytes in each file (and a total when there is more than one), or in what is piped into it.
A practice shell in your browser that behaves like bash on Linux for these commands. Nothing you type leaves the page.
Usage
wc [OPTION]... [FILE]...
Options
| -l, --lines | only the number of lines |
|---|---|
| -w, --words | only the number of words |
| -c, --bytes | only the number of bytes |
| -m, --chars | only the number of characters |
Examples
wc notes.txtLines, words and byteswc -l *.txtLines in each text file, plus a totalls | wc -lHow many entries ls printed