LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-07-2003, 10:16 AM   #1
shreev
Member
 
Registered: Apr 2003
Location: India
Distribution: Slackware 10
Posts: 37

Rep: Reputation: 15
Delete all in /tmp ???


Hi,
I find that my /tmp dir has been growing streadily for some time and is currently occupying almost 350 mb ... is it safe to delete ALL the stuff in the directory or will it affect any apps ? I imagine its better to do this during shutdown....
 
Old 08-07-2003, 10:29 AM   #2
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
better to do at shutdown (or at startup immediately after mounting the disks) ... but yes it is generally ok to delete everything in /tmp .

If you're uneasy go into /tmp and look at some of the access dates on those files I'm sure you'll find plenty that are older than Linus himself.
 
Old 08-07-2003, 10:32 AM   #3
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
/tmp can and should be cleared regularly... Unmaintained /tmp dirs can be a nice breeding ground for backdoors and other unwanted apps.
 
Old 08-07-2003, 12:37 PM   #4
shreev
Member
 
Registered: Apr 2003
Location: India
Distribution: Slackware 10
Posts: 37

Original Poster
Rep: Reputation: 15
Cool....thanks for the replies..

So...can I add 'rm -rf /tmp/*' (before the unmounting of the filesystems takes place) to my rc.6 - so that everything in /tmp gets wiped out in shutdown ...... or is there a better place to put this ??
 
Old 08-07-2003, 05:04 PM   #5
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Slackware doesn't do this automatically? That's crazy, every other distribution I've ever seen clears out /tmp and /var/tmp at shutdown and/or bootup.
 
Old 08-07-2003, 05:12 PM   #6
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
no redhat also doesnt clean it too i allways clear it manualy but dont rm -rf /tmp/ i never tried but removing actually temp can cause problem since progs will look for if it is not created during start up
 
  


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 OK to delete everything in /tmp? forrest44 Slackware 12 11-15-2005 11:47 PM
2 gigabyte /tmp directory..ok to delete contents pAn1k Linux - Newbie 3 09-02-2004 10:56 AM
How do I delete /tmp partition? akihandyman Mandriva 4 08-08-2004 03:38 PM
Can I delete everything in the /tmp directory? BajaNick Linux - General 5 07-04-2004 02:35 PM
can i delete /tmp files? demmylls Linux - General 1 03-01-2004 11:14 AM


All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
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