count lines linux code example
Example 1: shell count number of lines
$ wc -l < /dir/file.txt
3272485
Example 2: display number of lines in nano linux
Press
Alt+#
or
Alt+Shift+3
Example 3: count number of lines in directory linux
find . -name '*.php' | xargs wc -l