Wednesday, March 03, 2004

Finding disk space usage in OS X

Mac OS X Panther (10.3.2): "Re: Disappearing Disk Space in 10.3.2
John Palkovic
I just read some of the discussion of disappearing disk space. Here's what I do to produce a list, sorted in decreasing order, of disk space consumed by every file on my / drive. I open a Terminal.app, become root with 'sudo su -' and then
root# cd /
root# du -ax |sort 0 -rn > /tmp/du.txt
Then view /tmp/du.txt with TextEdit (open /tmp/du.txt), or 'more /tmp/du.txt' or your favorite editor. This can be applied to other drive if multiple drives are present, just cd into /Volumes/whatever and run the 'du -ax |sort 0 -rn'."

No comments: