wc
Print newline, word, and byte counts for each file
Overview
Prints the total number of bytes, words, and lines in each of the given files.
Syntax
wc [OPTION]... [FILE]...Common Options
-l, --linesPrint the newline counts.
-w, --wordsPrint the word counts.
-m, --charsPrint the character counts.
-c, --bytesPrint the byte counts.
-L, --max-line-lengthPrint the maximum display width.
--files0-from=FRead input from the files specified by NUL-terminated names in file F; If F is - then read names from standard input.
Examples
Displays the newline, word, and byte counts for myfile.txt.
Displays only the number of lines in report.doc.
Displays the word counts for chapter1.txt and chapter2.txt, and their total.
Counts the number of files and directories in the current directory.
Counts the characters in the string "Hello world" (including the newline from echo).
Shows the length of the longest line in data.csv.