[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Deleting /var/cache/*

Duncan Findlay <duncf@rogers.com> wrote:
> True, the FHS does not specifically say that directories have to be
> recreated, but I would consider it a bug if they aren't. Anyone agree?

I think it would be much better if you did

find /var/cache ! -type d -print0 | xargs -0r rm -f

The complications in recreating those directories simply isn't worth it.
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply to: