Emptying /tmp directory

I have a lot of stuff collected in the /tmp directory. Is it safe to
delete these files or is it better to leave them?

TIA

Alan


Alan-LB

Alan-LB’s Profile: http://forums.opensuse.org/member.php?userid=13630
View this thread: http://forums.opensuse.org/showthread.php?t=400677

Alan-LB;1901487 Wrote:
> I have a lot of stuff collected in the /tmp directory. Is it safe to
> delete these files or is it better to leave them?
>
> TIA
>
> Alan

If your system doesn’t use them, they will be automatically deleted.


http://yami.googlecode.com/
http://akoskm.blogspot.com

ram88’s Profile: http://forums.opensuse.org/member.php?userid=1058
View this thread: http://forums.opensuse.org/showthread.php?t=400677

I think that you can safely delete /tmp content, but there is a more
elegant way.
Open yast2->/etc/sysconfig editor
Look under Cron.
There you will find several variables that you can set related to /tmp
dir.
Look in particular at CLEAR_TMP_DIRS_AT_BOOTUP, if you set this to yes,
then the system will delete /tmp content on every boot (the default
value is no at least in 11.1 RC1)
I hope this help.


adriandelatabla

adriandelatabla’s Profile: http://forums.opensuse.org/member.php?userid=14860
View this thread: http://forums.opensuse.org/showthread.php?t=400677

ram88;1901489 Wrote:
> If your system doesn’t use them, they will be automatically deleted.

No, not always true. Only if there is a scavenger cron job.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=400677

Thanks for all your help

Alan


Alan-LB

Alan-LB’s Profile: http://forums.opensuse.org/member.php?userid=13630
View this thread: http://forums.opensuse.org/showthread.php?t=400677

this tread help me too with understanding this :slight_smile:


Linux 2.6.25.16-0.1-pae openSUSE 11 i386
#1KM400|Athlon|RAM2GB|FX5200
#2 nforce2|Athlon|Radeon9200|RAM1GB
#3 laptop ASUS x51r|Xpress1100|512MB

didencool’s Profile: http://forums.opensuse.org/member.php?userid=4743
View this thread: http://forums.opensuse.org/showthread.php?t=400677