Skip to main content

Recursive file sizes (filtered by file type)

ยท One min read

I had to find out the size of all our images on a site today. This was the easiest and fastest way to do it

find /home/username/public_html -name '*.png' -printf "%s\n"|awk '{sum+=$0}END{print sum}'