February 26, 2004
Disk Usage
Quick and easy du command to find the space used by each folder found in another folder:$ du -hx -d 1 /This command tells du to start in the root folder, do down 1 folder deep (-d 1), and give out stats in "human readable" form (-h) and to not traverse mounted file systems (-x). In a nutshell, it tells you which folders are taking up the most space on your root partition, something that is real nice to know. FreeBSD Hypertext Man Pages: du
del.icio.us | Digg it | Furl | Yahoo MyWeb | Create Social Bookmark Links
Posted by jdarnold at 08:42 AM | TrackBack
Track with co.mments
Track with co.mments I run the following daily via cron:
(cd /usr; du | sort -n -r | head -n 25 | sendmail huff)
THe "-n -r" to sort gets you the biggest directories first.
Posted by: Robert Huff on March 1, 2004 10:42 AMI haven't run into disk space problems, but your solution of an automatic email sounds like a great idea, just to stay ahead of the flow.



