In Linux, the/tmp regular addition description/tmp is the place for storing data in Linux. The system has a support schedule in/etc/cron. daily/tmpwatch (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, the rules are defined in/etc/default/rcS. redHat-like, it's/etc/cron. daily/tmpwatch and/etc/conf. d/bootmisc for Gentoo .) flags =-umc/usr/sbin/tmpwatch "$ f Lags "-x/tmp /. x11-unix-x/tmp /. XIM-unix-x/tmp /. font-unix-x/tmp /. ICE-unix-x/tmp /. test-unix 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 it crashes every day, in the example or project under the/tmp project, if it has exceeded 10 days, the value of 240 in the third row indicates that it is an hour, the fourth line of the 10-day period is 30 days to clear/var/tmp-x records, which means that you want to exclude