Word Count -> count lines, words or letters in a file.
wc -l lines.txt
or to show only the number of lines you can run:
cat lines.txt | wc -l
wc -w words.txt
wc -m file.txt
ls -l | wc -l
Question: How do you count how many lines a file has in Linux?
Answer: You run the command wc -l
and give it a file to count the number of lines.