LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   My /tmp is full (https://www.linuxquestions.org/questions/linux-general-1/my-tmp-is-full-3076/)

FNC 06-05-2001 02:05 AM

Hi,

I would like to know how I can automatically clear my /tmp folder every time my system boots up?

jharris 06-05-2001 05:34 AM

In one of your startup scripts put something like
Code:

rm -rf /tmp/*
but I don't know how advisable this is!! What is filling it up and not cleaning up after itself? If anything in you boot process uses /tmp as a tempory store, or to hold some data between boots its not doing to be very happy when you trash it!

If you post the distro you are using I'm sure someone will be able to give you some advise as to what file to put it in.

HTH

Jamie...

DrDebian 06-05-2001 09:11 AM

Quote:

Originally posted by FNC
I would like to know how I can automatically clear my /tmp folder every time my system boots up?
I have mounted my /tmp on /dev/null, now I have loads of free space. ;) ;) ;) No need to clean it out, either.

unSpawn 06-05-2001 03:35 PM

theres a package called tmpwatch, it seems to be configurable in deleting tru time/contents.
gotta be somewhere at freshmeat.net me thinks


All times are GMT -5. The time now is 10:51 PM.