Get the count of files of a specific file type

To know the count of files of a particular type in a directory

find . -name “*.png” | wc -l

find /usr/share/images/ “*.jpg” | wc -l

Leave a comment