Command
wcExplanation
wc counts lines, words, and characters in files.
Examples
Count lines, words, characters
wc file.txtCount lines only
wc -l file.txtCount words only
wc -w file.txtwcwc counts lines, words, and characters in files.
Count lines, words, characters
wc file.txtCount lines only
wc -l file.txtCount words only
wc -w file.txt