Linux Terminal Glossary
›
File Operations
wc -l file.txt
Category:
File Operations
wc -l file.txt
Copy command
Count only the number of lines in a file
Counts only the number of lines in a file. -l means 'lines'. Useful for knowing how big a file is.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.