Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Our disk on our VPS is somehow magically full, I was manually looking for any big files, even used a command to print all files bigger then 500MB, I got no results.

Is there a command which would search or print folder names, which are bigger then 500mb perhaps?

p.s.: I use CentOS 5.7

Many thanks in advance!

share|improve this question
    
Just bear in mind that you problem might not even be big files. It could just as easily be large numbers of small files. For a quick check compare your free space to your free inodes. –  John Gardeniers Dec 22 '11 at 21:09

2 Answers 2

up vote 5 down vote accepted

I really enjoy using the ncdu utility to provide a graphical representation of folder and subfolder usage on a system...

enter image description here

It's used in a similar manner as du, but makes it easy to navigate directories. The version for your OS is available via source tarball or from the EPEL repository.

share|improve this answer

I don't know of a stock utility that does what you need.

For directories, there's a perl script that does what you need in this LinuxJournal article

http://www.linuxjournal.com/content/tech-tip-find-directories-over-certain-size

For files find would be your friend.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.