Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 226 Bytes

count-number-of-lines-in-file.md

File metadata and controls

9 lines (5 loc) · 226 Bytes

How to count number of lines in a file

Counting total lines in a file is super simple in Linux

wc -l filename

You can use the same command to count total files in directory by running

find directory | wc -l