Jeff Epler's blog

4 April 2012, 12:54 UTC

dusub: Subtract two 'du'-style listings

Life is a constant war against the limited size of backup media. Here is my next weapon in the fight: dusub. Save a du listing today, then find out tomorrow or next week what's been growing:
dusub olddu newdu
du … | dusub olddu
Positive numbers in the output represent an item that grew since olddu; negative numbers represent a decrease in size since olddu.

Version 2 knows about "du -h"-style listings.

dusub is useful with sorttop:

du … | dusub olddu | sorttop

Files currently attached to this page:


read more…

All older entries
Website Copyright © 2004-2018 Jeff Epler