LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 05-13-2007, 06:38 AM   #1
digicutkid
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
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)
 
Old 05-13-2007, 07:05 AM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
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
 
Old 05-13-2007, 07:13 AM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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.
 
Old 06-11-2007, 12:52 AM   #4
hubideg
LQ Newbie
 
Registered: Oct 2005
Location: Angeles City / Philippines
Distribution: openSUSE 10.2
Posts: 4

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it safe to delete the contents of /tmp? tramni1980 Slackware 19 01-15-2007 02:39 PM
Is it OK to delete everything in /tmp? forrest44 Slackware 12 11-15-2005 10:47 PM
How do I delete /tmp partition? akihandyman Mandriva 4 08-08-2004 02:38 PM
can i delete /tmp files? demmylls Linux - General 1 03-01-2004 10:14 AM
Delete all in /tmp ??? shreev Slackware 5 08-07-2003 04:12 PM


All times are GMT -5. The time now is 04:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration