Find total file sizes

[code lang=”bash”]find /var/www/vhosts/*/statistics/logs -type d -exec du -sm {} \; | awk ‘{total+=$1} END {print total,”MB”}’ [/code]
Find total sizes of files in all those logs directories

Leave a Reply