Category: Linux

cd /

du -k | sort -n | perl -ne 'if ( /^(d+)s+(.*$)/){$l=log($1+.1);$m=int($l/log(1024)); printf("%6.1ft%st%25s  %sn",($1/(2**(10*$m))),(("K","M","G","T","P")[$m),"*"x (1.5*$l),$2);}'
find / -size +10000k -print0 | xargs -0 ls -lSh

 

Tags:

Linux

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count: