码迷,mamicode.com
首页 > 系统相关 > 详细

linux 开机自动清空/tmp目录是怎么回事

时间:2015-10-20 22:55:26      阅读:516      评论:0      收藏:0      [点我收藏+]

标签:

That depends on your distribution. On some system, it‘s deleted only when booted, others have cronjobs running deleting items older than n hours.

  • On Debian-like systems: on boot (the rules are defined in /etc/default/rcS).

  • On RedHat-like systems: by age (RHEL6 it was /etc/cron.daily/tmpwatch ; RHEL7 and RedHat-like with systemd it‘s configured in /usr/lib/tmpfiles.d/tmp.conf, called by systemd-tmpfiles-clean.service).

  • On Gentoo /etc/conf.d/bootmisc.

参考信息

linux 开机自动清空/tmp目录是怎么回事

标签:

原文地址:http://my.oschina.net/u/1011578/blog/519574

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!