LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-02-2004, 11:57 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
Can I delete everything in the /tmp directory?


Can I delete everything in the /tmp directory including the subdirectories.

Ive noticed that mozilla stores copies of downloaded files there and I have to delete them manually and if I dont the download manager gets overwhelmed and mozilla starts to save files really slow.
 
Old 07-03-2004, 12:16 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
There may be an option to clear /tmp when rebooting. Some locks are set up there after you start x-windows that you need for the current session, but nothing is needed between reboots.
 
Old 07-04-2004, 02:52 AM   #3
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
It should clear out itself with a reboot or cron but I guess it does not but is there anything in there that is needed? Ive got all these scrollkeeper files in /tmp that have something to do withg gnome but I dont use gnome.

Last edited by BajaNick; 07-04-2004 at 02:55 AM.
 
Old 07-04-2004, 03:34 AM   #4
JazzMastaJim
Member
 
Registered: Jun 2004
Location: Deep in the woods of southern NJ
Distribution: Pendrivelinux 2008
Posts: 70

Rep: Reputation: 15
Thumbs up

I have cleared out my /tmp directory from time to time (SuSE 8.1) without any problems. As long as you don't have any apps running and you reboot or shut down the computer immediately after emptying the directory, everything should be OK. For the greatest safety, do it from a text console without X running.
 
Old 07-04-2004, 11:48 AM   #5
MBH
Member
 
Registered: Sep 2003
Location: Kuwait
Distribution: Slack 10.0 @ Kernel 2.4.27
Posts: 63

Rep: Reputation: 15
For best results, do it when rebooting or shutting down .. cuz some progs might stick some lock files during shell-start-up ...

I just forgot about /tmp, until I saw your article again ^_^ I checked it, it's 10MB, screw it
 
Old 07-04-2004, 01:35 PM   #6
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
You can try: tmpwatch

Specify deletion time and use option -s to see if a file is already open before removing it. This should be the safest way IMHO to delete all unnecessary files in /tmp directory.
 
  


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 On
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 10:47 PM
2 gigabyte /tmp directory..ok to delete contents pAn1k Linux - Newbie 3 09-02-2004 09:56 AM
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 11:39 PM.

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