command to find number of lines in a file in linux code example Example: shell count number of lines $ wc -l < /dir/file.txt 3272485