CLI Tricks: Compare directory sizes when hard-linking
I have directories with lots of image files (or mail files), some of which I hard-link into other directories to save space or make sure they're in sync. How much space am I saving by hard-linking?
With a little math,
most of it can happen in one
awk
statement: