clearing out /tmp safely

Tom 'Needs A Hat' Mitchell mitch48 at sbcglobal.net
Fri Mar 26 20:17:48 UTC 2004


On Fri, Mar 26, 2004 at 11:47:55AM -0600, Robert wrote:
> Tom Needs a Hat Mitchell wrote:
> >On Tue, Feb 17, 2004 at 12:49:31AM -0300, Alexandre Strube wrote:
> >
> >>Hello Matt
> >>
> >>
> >>>I would like to clean out my /tmp partition as per the tip at 
....
> >Cleaning out /tmp /var/tmp by hand should be unnecessary beyond removing 
> >the
> >occasional big junk file.
> >
> >See:  /etc/cron.daily/tmpwatch


> to verify that cron.daily was working. It was.
> Then I tried executing (as root)
> 
> [root at mavis root]# /usr/sbin/tmpwatch 240 /tmp
> 
> and I *still* have a bunch of old files in /tmp
> 
> [root at mavis root]# find /tmp -ctime +10 | wc -l
>     613

Are you finding files or directories.
I do see a list of empty dirs that make /tmp look untidy.
An "rmdir /tmp/* " cleans out only the empty ones.



-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.





More information about the users mailing list