HowTo: Regular cleanup the Tempfolders

If you would like to cleanup regularly your System, we presenting the following Steps!

Launch YaST:
Choose Category „System“, then „Editor for /etc/sysconfig Files“.

Then open „System“ and after that open „Cron“.

Here you find the following Entrys:

Change to: “yes”
That means: enable or disable the Cleanup Function global.
Default: „no“ (=off!)

That you can leave.
That means: First List from Folders, that can be deleted.
Default: /tmp

Change to: „1“ (=deletes all Files who are older than 24h)
Means: Max. File Lifetime in days. That is for the Files, defined in TMP_DIRS_TO_CLEAR.
Default: 0 (=disabled)

Close the Editor. You see all changes and you can close the Editor.

Close “YAST”
In the next Systemstart cron cleans up your /tmp.

You can define an second List:

Means: second Folderlist who can be deleted.
Default: “”
Possible Option: “/var/tmp”

Means: Max File Lifetime in days, for all Files who are defined in LONG_TMP_DIRS_TO_CLEAR.
Default: 0 (= disabled)
Possible Option: “28″

Based on Reinhard Haase’s HowTo on:

Über saigkill
openSUSE Ambassador, openSUSE Marketing Team, Weekly News Team, openFATE Screening Team and BuildService.

2 Responses to HowTo: Regular cleanup the Tempfolders

  1. Matteo says:

    Or, if you have enough ram, you can put something like:
    tmpfs /tmp tmpfs auto,size=256M,uid=0,gid=0,mode=1777 0 0


  2. Silviu Marin-Caea says:

    It’s not right to delete from /var/tmp. According to Filesystem Hierarchy Standard, this directory contains „temporary files to be preserved between reboots“. You should let applications delete their own files from /var/tmp or you can delete manually if you are sure.

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

Du kommentierst mit Deinem Abmelden /  Ändern )

Google Foto

Du kommentierst mit Deinem Google-Konto. Abmelden /  Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden /  Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden /  Ändern )

Verbinde mit %s

%d Bloggern gefällt das: