The wc
command will find the word count of a file.
It has several different flags that make it helpful for determining how big
files are.
These include
wc -w
: gives the word countwc -l
: gives the line count (the last line won’t be counted if\n
isn’t included)wc -m
: gives the character countwc -c
: gives number of bytes