I am using Scientific Linux. So is there any stuff that can be safely removed from disk except /tmp?

4 Answers 4


One of the easiest and safest thing to do is to clear the package manager cache. You did not specify which operating system or distribution you use so I will give examples for the mainstream distributions:

  • debian/ubuntu:

    apt-get clean
  • fedora/red hat:

    yum clean
  • opensuse:

    zypper clean

Most, if not all, other package managers in other distributions have a similar functionality.

Another thing you can relatively easy do is delete old kernel versions. Most distributions keep the old kernels installed when installing a new kernel.

Here is a guide how to remove old kernels for debian and fedora: http://www.cyberciti.biz/faq/proper-way-to-remove-old-linux-kernels/

  • I am using Scientific Linux. Would you please note how to do it there? May 15, 2013 at 15:27
  • 1
    Scientific Linux is based on red hat which in turn is based on fedora. I have updated my answer with information for fedora and red hat.
    – Lesmana
    May 15, 2013 at 17:02

If you want to reclaim disk space, the best way is to uninstall applications you don't need. List the biggest applications that are installed and check if you really need them. Since you didn't specify your operating system here's how to do it on Debian based systems:

aptitude search '~i' --sort installsize -F '%I %p'

Another approach is to delete user data that's not required. To find big files or directories, you can use a tool like baobab.


All or much in /var/tmp can probably be removed. Much in various /var/cache-directories - eg. previously downloaded apt-packages - can be removed. In the users home-directories, thumbnails generated by various file-browsers (eg. .thumbnails) can be removed. Also the caches of various web-browsers can be removed.


Beside getting rid of stuff you don't use, disk analyzing tools are also helpful because they help you find stuff you don't even think about. Maybe an application forgets to clean up its old logs, maybe old backups that you forgot about and don't need anymore.

The main difference is, instead of looking for stuff that you can delete, these tools show you the stuff that takes the most space, and then you decide whether that space is legitimate or wasted.

If you are on desktop I recommend baobab or KDirStat. For servers there is philesight.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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