[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Space problems on a machine



On Tue, Nov 11, 2003 at 12:19:02PM -0000, Rob Keeling wrote:
Hi

[snip]
> does not look good. how do I free up space on /?

To see what's taking up lots of space try:

sudo du -h --max-depth=3 --exclude=boot --exclude=backup / | egrep '.*M'

This should list directories with over 1MB of stuff in them, you may find
somewhere which is using more space than it should, often due to messing up
redirection with > (in my case). Sometimes /root/ gets filled up with junk
if a program outputs to $HOME and you're runninng it as root.

> 
> can I just delete everything in /tmp?

This is usually ok, anything that needs a file to be there will put it back.
You could consider using tmpfs, which stores /tmp in memory (or swap, can't
remember) so it is cleared out everytime you reboot the computer. 

HTH

Tom

-- 
Video games don't affect kids; I mean if Pac-Man affected us as kids, 
we'd all be running around in darkened rooms, munching magic pills and 
listening to repetitive electronic music. ~ K. Wilson, Nintendo, 1989
___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.