Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


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

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

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
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
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
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
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
LQ 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


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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:37 PM.

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