Re: /tmp directory

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



Am 10.12.2012 um 11:22 schrieb John Doe:
> From: Jerry Geis <geisj@xxxxxxxxxxxxxxx>
> 
>> Yep - got me. Luckily I had other copied of the items. Just not on the 
>> machine I needed
>> it at the time.
> 
> You also have '/var/tmp' that is expected to survive reboots and should be less often (never?) cleared.



cat /etc/cron.daily/tmpwatch
flags=-umc
/usr/sbin/tmpwatch "$flags" -x /tmp/.X11-unix -x /tmp/.XIM-unix \
	-x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix \
	-X '/tmp/hsperfdata_*' 240 /tmp
/usr/sbin/tmpwatch "$flags" 720 /var/tmp
for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?}; do
    if [ -d "$d" ]; then
	/usr/sbin/tmpwatch "$flags" -f 720 "$d"
    fi
done



720 = 30 days

--
LF




_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux