Count all lines and how many lines in each file find . -name '*.php' | xargs wc -l Sorted find . -name '*.php' | xargs wc -l | sort -nr counter series1 - Count all code lines in certain directory from terminal or git bash2 - How to count all files in directory using terminal3 - How to count all directories in directory#terminal#git