Thursday, July 16, 2009

What is eating your disk? -> % du | sort -n

My sweet sister (happy b-day!) read my blog and suggested the following entry. How do to tell what is eating up a hard disk drive on a Mac. Well here is my solution that uses a simple "unix-style" command in the "Terminal" utility window. One way to get to the Terminal window is to search for it by going to the "spotlight" found at upper right corner of desktop. Once your Terminal window is up and running simply type in "du | sort -n ". Translation: du lists all files with the size of file in each line. We | "say pipe" that output to the sort command. The end of the final output will be the largest files and directories in your system. Now delete those directories you no longer need.

No comments:

Post a Comment