Is it safe to delete stuff in /tmp? (SUSE 10.2)
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 ;-)
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
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.
delete /tmp folder at startup
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
|All times are GMT -5. The time now is 06:31 AM.|