Home arrow Berts CLI Blog
Berts CLI Blog
More large directory hunting PDF Print
Saturday, 03 February 2007

Yes, sometimes I'm obsessed with hunting for large directories.  One of my duties is administering a mail server which is short on disk space.  I've been meaning to upgrade the drives for a while, but I haven't found the time.  So, in the meantime I hunt for large directories.  Most of that time is spent in /var/spool/imap and hounding people about archiving their mail.

The command I use 

du -S /var/spool/imap | sort -nr | head -n 30

Last Updated ( Saturday, 03 February 2007 )
Read more...
 
Find large directories easily PDF Print
Thursday, 29 June 2006

Sometimes it is useful to find large directories easily.  Here I pipe the output from du -h through grep to look for anything larger than 100M

[root@dutchstar rappr]# du -h | grep [1-9][0-9][0-9]M

202M ./download

125M ./updates

[root@dutchstar rappr]#

 
Squid cache watching PDF Print
Friday, 28 April 2006

I find this useful now and then when trying to figure out who is sucking down the bandwidth by listening to internet radio.

watch "client mgr:active_requests | grep -A 6 -B 7 \"uri.*stream\\|uri.*radio\\|uri*.wma\\|uri*.wmv\""

 

Last Updated ( Friday, 28 April 2006 )