Thursday, 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



1 comment:

  1. I 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.

    ReplyDelete