Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now, I see that my desktop running rhel 5.6 has run out of space. Now I need to clean it up. There must be some unintentional files adding up. What I would like to be able to do is list the files in descending size order in a clean way and see the culprits.

share|improve this question
Less likely a solution, but you may have some duplicated files to remove. See Is there an easy way to replace duplicate files with hardlinks? for some tools. – manatwork Nov 16 '11 at 12:10
The command find . | xargs ls -l | grep ^- | sort -k 5 -n helped to zero down some culprits.. – xyz Nov 16 '11 at 12:20
up vote 3 down vote accepted

First thing to try is yum clean packages. Have a look at man yum for more cleanup options.

Other things you could do are mostly cleaning your own downloaded files, logs etc., to which there' no general rule.

share|improve this answer

What I would do is to install and run baobap or KDirStat or the like. This would give you a visual graph of what is taking up space, together with file types. You can easily spot the problem and delete/uninstall things you don't want.

share|improve this answer

I usually use ncdu for similar purposes.

share|improve this answer

Your Answer


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.