PDA

View Full Version : Locating Large Files


dross
Dec 22, 2004, 01:32 PM
I am trying to see what is eating up all my disk space. Any one have any good ideas of how to search throug it.

I thought about trying:

find $1 -type d | xargs du -sm | sort -g

Some one said try: du -sm $(find $1 -type d -maxdepth 1 -xdev) | sort -g but I could not get it to work.

I tried:find / -size +10000000 -print but only got "primissions denied on a bunch of folders.

Any other sugestions?

jeremy.king
Dec 22, 2004, 01:43 PM
sudo find / -size +10000000 -print

then enter your login password.

dross
Dec 22, 2004, 01:45 PM
sudo find / -size +10000000 -print

then enter your login password.

OK I am a bone head but how would I do that? Do I put it right in the line of code?

jeremy.king
Dec 22, 2004, 01:47 PM
I just put it in a code tag to format it with fixed width font.

You can copy that line and paste into terminal and you shouldn't get any permission denied errors.