Nov 062009
 

find . -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' | sort -rn
du -mh --max-depth=2 | sort -nr | head -100
du -x | sort -nr | head -10
du -x --block-size=1024K | sort -nr | head -10
df -H
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }'
df -H | grep -vE '^Filesystem|tmpfs|cdrom'
du -h --max-depth=1
du -sh
du -kh kb
du -mh megs

and my all time favorite:

du -sk ./* | sort -nr | awk 'BEGIN{ pref[1]="K"; pref[2]="M"; pref[3]="G";} { total = total + $1; x = $1; y = 1; while( x > 1024 ) { x = (x + 1023)/1024; y++; } printf("%g%s\t%s\n",int(x*10)/10,pref[y],$2); } END { y = 1; while( total > 1024 ) { total = (total + 1023)/1024; y++; } printf("Total: %g%s\n",int(total*10)/10,pref[y]); }'

 Posted by at 7:45 am