Can I just go in a delete all the files in tmp? Or, do I need to be more careful? I noticed that a lot of flv fragments go in there. I did just delete those because I couldn’t see how they could be useful again. What about all the other stuff? Any advice would be awesome…
You can delete them.
You can also instruct the system to delete them automatically at boot:
in YaST, select : System -> /etc/sysconfig Editor
- System
- Cron
CLEAR_TMP_DIRS_AT_BOOT = yes
- Cron
Awesome! Thanks. I will look into that.
On 11/27/2010 09:06 AM, caleb782734 wrote:
>
> Can I just go in a delete all the files in tmp? Or, do I need to be
> more careful? I noticed that a lot of flv fragments go in there. I did
> just delete those because I couldn’t see how they could be useful again.
> What about all the other stuff? Any advice would be awesome…
>
>
You can install tmpwatch from the OSS repo.
Then just run a cron job like
@hourly /usr/sbin/tmpwatch -maf 72 /tmp
This will once an hour remove all files older than 72 hours.
You can change the parameters to your liking, man tmpwatch.
Vahis
http://waxborg.servepics.com
openSUSE 11.3 (x86_64)
2.6.34.7-0.5-default
please try again wrote:
> You can delete them.
NO you can not just delete the files in /tmp in a running system!
you MUST boot from another system (say a live CD) and mount then
navigate to the /tmp directory and delete…
that is to say that a LOT of the files and directories under /tmp
ARE in use by the system…deleting them WILL cause problems…
do NOT do it…
the below will work:
> You can also instruct the system to delete them automatically at boot:
> in YaST, select : System -> /etc/sysconfig Editor
> + System
> + Cron
> CLEAR_TMP_DIRS_AT_BOOT = yes
–
DenverD
CAVEAT: http://is.gd/bpoMD [posted via NNTP w/openSUSE 10.3]
BTW, this works great.
On 2010-11-27 21:04, DenverD wrote:
> please try again wrote:
>> You can delete them.
>
> NO you can not just delete the files in /tmp in a running system!
>
> you MUST boot from another system (say a live CD) and mount then
> navigate to the /tmp directory and delete…
Just switch to runlevel 3 and delete user owned files. For root’s, be
careful, or switch to runlevel 1.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
On 2010-11-27 08:59, Vahis wrote:
> @hourly /usr/sbin/tmpwatch -maf 72 /tmp
>
> This will once an hour remove all files older than 72 hours.
Dangerous. My current uptime is 16 days - any such operation should take
into account the current uptime and not delete any file younger than that.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
On 11/28/2010 02:03 AM, Carlos E. R. wrote:
> On 2010-11-27 08:59, Vahis wrote:
>
>> @hourly /usr/sbin/tmpwatch -maf 72 /tmp
>>
>> This will once an hour remove all files older than 72 hours.
>
> Dangerous. My current uptime is 16 days - any such operation should take
> into account the current uptime and not delete any file younger than that.
>
My server’s uptimes are often close to a kernel version lifetime, but a
typical one reaches like 60 or so days.
No probs ever with 72 hours.
I didn’t make it up myself in the first place, I looked for it quite
some time around server circles.
It’s years ago tho, so I don’t have a reference.
Vahis
http://waxborg.servepics.com
openSUSE 11.3 (x86_64)
2.6.34.7-0.5-default
On 2010-11-28 05:54, Vahis wrote:
> On 11/28/2010 02:03 AM, Carlos E. R. wrote:
>> On 2010-11-27 08:59, Vahis wrote:
>>
>>> @hourly /usr/sbin/tmpwatch -maf 72 /tmp
>>>
>>> This will once an hour remove all files older than 72 hours.
>>
>> Dangerous. My current uptime is 16 days - any such operation should take
>> into account the current uptime and not delete any file younger than that.
>>
>
> My server’s uptimes are often close to a kernel version lifetime, but a
> typical one reaches like 60 or so days.
> No probs ever with 72 hours.
Depends on what temp files do the server daemons store in /tmp.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
On Sat, 27 Nov 2010 07:06:02 +0000, caleb782734 wrote:
> Can I just go in a delete all the files in tmp? Or, do I need to be
> more careful? I noticed that a lot of flv fragments go in there. I did
> just delete those because I couldn’t see how they could be useful again.
> What about all the other stuff? Any advice would be awesome…
I prefer to use tmpwatch myself…
Jim
–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C