Friday, February 9, 2007

Finding large files in a linux filesystem

This is a small, "note to self" kind of post. Sometimes it is useful to know what files are taking up the most space in our filesystem. Very useful under stressful times like when your server has a 100% filled partition. It can be done this way:

find / -size +10240000c -exec du -h {} \;

This will find files larger than 10Megs.

Now i won't forget next time!!!

Hope this is useful for you as well!

No comments: