Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 1996 10:48:03 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Subject:   Re: Cleaning of /tmp in /etc/rc
Message-ID:  <199606230848.KAA02902@uriah.heep.sax.de>
In-Reply-To: <Pine.NEB.3.93.960622125144.6718C-100000@misery.sdf.com> from Tom Samplonius at "Jun 22, 96 12:57:19 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As Tom Samplonius wrote:

> > Does anybody know what the following is for?
> > 
> > # prune quickly with one rm, then use find to clean up /tmp/[lq]*
> > # (not needed with mfs /tmp, but doesn't hurt there...)
> > (cd /tmp && rm -rf [a-km-pr-zA-Z]* &&
> >     find -d . ! -name . ! -name lost+found ! -name quotas -exec rm -rf -- {} \;)
> 
>   It's supposed to delete everything in /tmp except lost+found and
> quota.user and/or quota.group

But you missed my second part.  It does a lousy job in cleaning, and
even fails to clean the .X*lock files (which it really should), it
also fails to clean all other dot files -- so it's essentially
useless.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606230848.KAA02902>