Introduction
Sometimes you want to know how many lines, words, or characters are in a text file. The wc command helps you count these quickly from the command line.
When you want to check how many lines a log file has to estimate its size.
When you need to count words in a text document to meet a writing requirement.
When you want to find out how many characters are in a configuration file.
When you want to quickly see the size of output from another command by counting lines or words.
When you want to verify if a file is empty by checking if it has zero lines or characters.