On 06/22/2011 07:44 PM, Timothy Murphy wrote:
Anne Wilson wrote:
>> Slightly OT, but I find I have lots of files in /tmp
>> of whose purpose I know nothing - including many virtuosi-*.ini .
>>
>> Some of these on my Fedora-15 system date back to May, eg akonadi-tim* .
>>
>> I thought /tmp got emptied at regular intervals?
>> Or does one have to specify this somewhere?
> On a weekly basis I run
>
> tmpwatch --mtime --verbose --verbose 168 /tmp
>
> It's amazing how much cruft it takes out weekly (it's intelligent enough
> to
> have an age limit on the files it removes). You can equally run a cron
> job to clean a user ~/tmp if you have one.
Thanks for the response.
I see I do actually have tmpwatch in /etc/cron.daily ,
which removes /tmp files, with some exceptions, after 10 days.
But now I see that the things remaining in /tmp are in directories, eg
4 drwx------. 2 tim tim 4096 Jun 4 01:31 virtual-tim.2Van37
and as far as I can see tmpwatch does not remove directories,
even though "man tmpwatch" says it removes empty directories,
which mine seem to be.
I think the problem there is the flags used by the cron are -umc and the
man page has a "warning" about this when it comes to -u
When run with -m it does more of what I think you'd want it to do....
That is want I found out when I just ran it with only -m.
Ed