linux number lines in file code example
Example 1: find how many lines in a file linux
wc -l <filename>
Example 2: linux command to get number of lines in a file
wc -l <filename>
# output = <number of lines> <filename>
# to omit the file name in output
wc -l < <filename>
# output = <number of lines>