Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is there any other way to free up disk space on windows xp and on ubuntu 9.10 removing unnecessary files and folders/directories?

For windows, as far as I know I use Disk cleanup, Disk Defragment, and removing cookies and histories from IE browser. Is there any other way to clean up apart from these.

The ubuntu cloud server has left only 900MB of disk space. I'll just empty the directory /tmp and wondering if there is any other location to clean up.

share|improve this question
Better suited to SuperUser? It would automigrate if voted to close. – Bart Silverstrim Oct 11 '10 at 13:11
Or ask on the ubuntu version of this site: – Phil Hannent Oct 11 '10 at 13:16
Thank you for redirecting to new site – user53864 Oct 11 '10 at 13:27… – bindbn Oct 11 '10 at 13:30
up vote 1 down vote accepted

You can use du to investigate which directories are using the most space. I typically run du repeatedly, working my way down the file hierarchy to find if I have any large files that I no longer need and have forgotten about.

du -sch /*

Then, if I see /var is taking up a lot of space, I'll du in that directory:

du -sch /var/*

... etc.

You can also clean up downloaded packages (.debs) that are cached by apt.

apt-get clean
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.