how to output the number of lines a file has in linux code example Example: find how many lines in a file linux wc -l <filename>