首页 > 系统服务 > 详细

Linux--/tmp目录文件重启后自动删除

时间:2015-06-18 09:19:47      阅读:255      评论:0      收藏:0      [点我收藏+]

源博客 http://blog.itpub.net/24996904/viewspace-769327/

 

在/etc/default/目录下有个rcS文件,文件内容如下:
#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.


TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=yes
VERBOSE=no
FSCKFIX=no
RAMRUN=no
RAMLOCK=no

红色字体TMPTIME=0。值为0表示重启后删除文件,值为-1就不会自动删除文件,值为正整数表示/tmp目录下文件保留时间。

Linux--/tmp目录文件重启后自动删除

原文:http://www.cnblogs.com/weixiaole/p/4584884.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!