"be consistent" | |
PerlMonks |
Re: Script to show space usage by users in home partitionby chargrill (Parson) |
on Jan 12, 2007 at 08:11 UTC ( [id://594325]=note: print w/replies, xml ) | Need Help?? |
TIMTOWTDI and all, but I'd just parse the output of:
... and look for likely offenders by grepping for high values of M or just G, i.e. output from above on my system:
At least you don't have to do a lot of work that du can do for you - which is more portable (installed on every *nix) than dhog (?) which I've honestly never heard of before. As the output of du with the -h (human readable) flag (along with some kind of depth flag) is easily readable, implementation is left as an exercise for the, uh ... reader. :-) --chargrill
In Section
Seekers of Perl Wisdom
|
|