LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Is it safe to delete stuff in /tmp? (SUSE 10.2) (https://www.linuxquestions.org/questions/linux-desktop-74/is-it-safe-to-delete-stuff-in-tmp-suse-10-2-a-553519/)

digicutkid 05-13-2007 06:38 AM

Is it safe to delete stuff in /tmp? (SUSE 10.2)
 
Hi

I am doing some disk cleanup and when running baobab, I found that the /tmp directory took up around ~650 MB! I know that Linux seems to have a knack of storing important stuff everywhere and I was just wondering whether it was safe to clear out the /tmp directory considering that there is a lot of locked permissions stuff in there (owner : root)

Thanks for your help in advance ;-)

(OpenSUSE 10.2)

carl0ski 05-13-2007 07:05 AM

Quote:

Originally Posted by digicutkid
Hi

I am doing some disk cleanup and when running baobab, I found that the /tmp directory took up around ~650 MB! I know that Linux seems to have a knack of storing important stuff everywhere and I was just wondering whether it was safe to clear out the /tmp directory considering that there is a lot of locked permissions stuff in there (owner : root)

Thanks for your help in advance ;-)

(OpenSUSE 10.2)

its reasonably safe to delete everything in the tmp folder

but dont delete the tmp folder itself since it may cause permissions problems.

you'll find you wont be able to delete most of it
since it is in use by KDE/Gnome etc for sockets/locks


Suse will store temporary/partial/complete rpm files downloaded in the
/var/Yast2/cache/rpm? folder or similar

stress_junkie 05-13-2007 07:13 AM

The /tmp directory tends to accumulate a lot of junk. You can safely delete anything in /tmp and in /var/tmp if the owner of the files is not logged in. One good way to help keep the amount of junk to a minimum is to have the operating system delete everything in /tmp when it starts. You can do this in SuSE by editing the file /etc/sysconfig/kernel. I'm not sure because I don't have SuSE installed anywhere at the moment. Anyway there is a line in that file that enables having the startup process clear all of the files out of the /tmp and the /var/tmp directories.

hubideg 06-11-2007 12:52 AM

delete /tmp folder at startup
 
Hello,

here is the way I did it.

open Yast -> System -> /etc/sysconfig/editor

in /etc/sysconfig/editor -> System -> Cron -> CLEAR_TMP_DIRS_AT_BOOTUP

there type "yes"

and your /tmp directory will be cleaned up every time you boot your SUSE

Regards

Bert


All times are GMT -5. The time now is 08:38 PM.