[CentOS] centos7 tmpfiles.d deleted outdate files
qzschen at gmail.com
Mon May 30 11:31:25 UTC 2016
Hi Jonathan Billings,
the `age` can't apply to 'r', only would apply to 'd', 'D', 'x', 'X', etc
"The age field only applies to lines starting with |d|, |D|, |v|, |q|,
|Q|, |C|, |x| and |X|. If omitted or set to "|-|", no automatic clean-up
so, there have good idea if I only want to delete the specific files not
all files in that dir? thx.
On 2016年05月26日 20:54, Jonathan Billings wrote:
> Boxbe <https://www.boxbe.com/overview> This message is eligible for
> Automatic Cleanup! (billings at negate.org) Add cleanup rule
> | More info
> On Thu, May 26, 2016 at 03:03:25PM +0800, Qiang Chen wrote:
>> Would some one help me for this question? thanks very much.
> I would suggest reading the tmpfiles.d man page.
> Use 'd' for the directory, and 'r' for the files you want to remove,
> including the age. Something like 'r /path/* - - - 10s'.
More information about the CentOS