June 27, 2007

What are some common temp files I can delete from my Linux server to free room my Linux admin just quit?

My Linux admin just quit and I really need to free room. The coping files seem to complicated so now I am looking for files that I can delete

  1. To the person who wanted to know if I am hiring, it depends on where you are located.
    email me at sadarius@yahoo.com where you are located.
  2. Most distributions keep their temp files under /tmp. Anything over a couple of hours old in there should be ok to remove.

    Another place that could be using a lot of space is /var/log/ This holds various system logs. The old logs will probably have been rotated and will now probably be .gz files. Depending on the use of the system these could be quite big. Don't remove any of the current files, just the old ones. And, of course, don't remove any important logs that you'll want to analyse later (eg web server, proxy server and so on).

    Depending on how your system is partitioned, these may only affect your /tmp and /var partitions respectively. To get a picture of which partitions are struggling try
    df -l
    which will tell you how much of the various partitions are in use and which ones you need to focus on.

  3. Are you hiring?
  4. This isn't easy to answer without knowing your system. It would depend on what distribution you have, and what apps are running. In general, a base Linux seems to be pretty good about not leaving a lot of junk temp files around. Your apps may though. If you aren't afraid of the command line, you could use a command like
    find / -mtime -1 -size +100
    (for example) to find files modified within a day, and with a size over 100 blocks (50k I think, but it's been a long time since I did this). These of course mostly will not be temp files, but it could give you an idea of what's been growing that filled up your space.

Tags: ,

Tell a Friend Today!

del.icio.us Digg Furl Reddit Ask BlinkList blogmarks Blogg-Buzz Google Ma.gnolia Netscape ppnow Rojo Shadows Simpy Socializer Spurl StumbleUpon Tailrank Technorati Windows Live Wists Yahoo! Help

Permalink • Print

Track this entry

RSS BlogPulse

RSS Technorati Cosmos

Related Searches

, , , ,