Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 1996 23:58:28 +0200 (MET DST)
From:      Wilko Bulte <wilko@yedi.iaf.nl>
To:        tom@sdf.com (Tom Samplonius)
Cc:        joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.org
Subject:   Re: Cleaning of /tmp in /etc/rc
Message-ID:  <199606222158.XAA05610@yedi.iaf.nl>
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...

> On Sat, 22 Jun 1996, J Wunsch 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
> 
>   I believe lost+found can be safetly removed.

I don't think the lost+found clause is useless: consider a /tmp that is a 
seperately mounted filesystem. 

Wilko
_     __________________________________________________________________________
 |   / o / /  _   Wilko Bulte             email: wilko@yedi.iaf.nl
 |/|/ / / /( (_)  Private FreeBSD site  - Arnhem - The Netherlands
--------------------------------------------------------------------------------



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