Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

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

about /tmp

On Fri, 17 Dec 2004 15:09:27 -0800 (PST)
Dave Peters <gameslover987 at> wrote:

> Does anyone know how to change default setting on
> clean up /tmp? There is default setup how many day to
> remove file on /tmp directory. I have read about it
> but forget it. Does anyone know about it?
Depends on the distribution. 
On SuSE, it is set up in /etc/sysconfig/cron. You can use YaST to change
this or manyally edit it and run sueconfig. 

# cron.daily can check for old files in tmp-dirs. It will delete all
# not accessed for more than MAX_DAYS_IN_TMP. If MAX_DAYS_IN_TMP is not
# or set to 0, this feature will be disabled.

## Type:        string
## Default:     "/tmp /var/tmp"
# This variable contains a list of directories, in which old files are
# be searched and deleted.
TMP_DIRS_TO_CLEAR="/tmp /var/tmp"

## Type:        string
## Default:     root
# In OWNER_TO_KEEP_IN_TMP, you can specify, whose files shall not be

## Type:        string
## Default:     no
# "Set this to "yes" to entirely remove (rm -rf) all  files and
# from the temporary directories defined in TMP_DIRS_TO_CLEAR on bootup.
# Please note, that this feature ignores OWNER_TO_KEEP_IN_TMP - all
files will
# be removed without exception."
# If this is set to a list of directories (i.e. starts with a "/"),
# directories will be cleared instead of those listed in
# This can be used to clear directories at boot as well as clearing
# files out of other directories.

Jerry Feldman <gaf at>
Boston Linux and Unix user group PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /