ubuntu 清空/tmp目录

这和具体的发行版有关

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

2.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).

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


你可能感兴趣的:(ubuntu 清空/tmp目录)