SH | Diensttagebuch

In the middle of the desert you can say anything you want

01 Nov 2021

211101-2111 bash - Find the size of all files of a certain type

From SO, to find the disk space taken by files with a certain extension/type:1

find ./photos/john_doe -type f -name '*.jpg' -exec du -ch {} + | grep total$

  1. Find the total size of certain files within a directory branch - Unix & Linux Stack Exchange ↩︎

Nel mezzo del deserto posso dire tutto quello che voglio.