Date: Sat, 22 Jun 1996 12:57:19 -0700 (PDT) From: Tom Samplonius <tom@sdf.com> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: FreeBSD hackers <freebsd-hackers@freebsd.org> Subject: Re: Cleaning of /tmp in /etc/rc Message-ID: <Pine.NEB.3.93.960622125144.6718C-100000@misery.sdf.com> In-Reply-To: <199606221308.PAA27308@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
It doesn't actually avoid the quota files properly. It should probably
also check whether the quota files are owned by root.
Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.960622125144.6718C-100000>
