command to count no of lines in a file in linux code example Example: count number of lines in directory linux find . -name '*.php' | xargs wc -l