ã©ã¡ããä¸æãã¡ã¤ã«ãä¿åãããã£ã¬ã¯ããªã ããã©ãã¡ããã¨èª¬æããã£ãã®ã§ã¡ã¢ã
/tmp
ã»åèµ·åããã¨ãã¡ã¤ã«ã¯æ¶ãã
ã»å®æçã«åé¤ãããï¼10æ¥ï¼
/var/tmp
ã»åèµ·åãã¦ããã¡ã¤ã«ã¯æ¶ããªã
ã»å®æçã«åé¤ãããï¼30æ¥ï¼
CentOS 6.xã®å ´åã»ã»ã»
åèµ·åå¾ã®å¦çã¯ã/etc/rc.d/rc.sysinit ã§è¡ãããã
å®æçã«åé¤ããå¦çã¯ã/etc/cron.daily/tmpwatch ã§è¡ãããã
ãããã®ç¨éã¯ãFHSï¼Filesystem Hierarchy Standard(ãã¡ã¤ã«ã·ã¹ãã é層æ¨æºï¼ã«è¨è¼ããã¦ããã
Filesystem Hierarchy Standard
http://www.pathname.com/fhs/
FHS 2.3ã«ããã¨ã»ã»ã»
/tmpï¼P.15
The /tmp directory must be made available for programs that require temporary files.
Programs must not assume that any files or directories in /tmp are preserved between invocations of the program.
/tmpã¯ãä¸æãã¡ã¤ã«ãå¿
è¦ã¨ããããã°ã©ã ã®ããã«ä½¿ç¨å¯è½ã§ãªããã°ãªããªãã
ããã°ã©ã ã¯ãããã°ã©ã ã®å¼ã³åºãã¦ããéã ã/tmpã«ãã¡ã¤ã«ããã£ã¬ã¯ããªãä¿æããã¦ããã¨ä»®å®ããªããã°ãªããªãã
/var/tmpï¼P38
The /var/tmp directory is made available for programs that require temporary files or directories that are preserved between system reboots.
Therefore, data stored in /var/tmp is more persistent than data in /tmp.
Files and directories located in /var/tmp must not be deleted when the system is booted.
Although data stored in /var/tmp is typically deleted in a site-specific manner,
it is recommended that deletions occur at a less frequent interval than /tmp.
/var/tmpã¯ãã·ã¹ãã ãåèµ·åããã¦ãä¸æãã¡ã¤ã«ããã£ã¬ã¯ããªãä¿æãããäºãå¿
è¦ã¨ããããã°ã©ã ã®ããã«å©ç¨ãããã
å¾ã£ã¦ã/var/tmp ã«ä¿åããããã¼ã¿ã¯ã/tmp ã®ãã¼ã¿ãããé·ãä¿æãããã
/var/tmpã«ç½®ããããã¡ã¤ã«ããã£ã¬ã¯ããªã¯ãã·ã¹ãã ãèµ·åãããéã«åé¤ãã¦ã¯ãªããªãã
/var/tmpã«ä¿åããããã¼ã¿ã¯ãé常ãµã¤ãåºæã®ã«ã¼ã«ã§åé¤ããããã/tmp ãããä½ãé »åº¦ã§åé¤ããäºãæ¨å¥¨ããã
åèï¼
http://qiita.com/kuni-nakaji/items/f29be14be578b5a19d4b
ã2014/10/15 追è¨ã
é¢é£è¨äºãæ¸ãã¾ããã
tmpwatch の動作を確認する - しょぼんメモリ (´・ω・`)