LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-05-2001, 02:05 AM   #1
FNC
Member
 
Registered: Feb 2001
Location: South Africa
Distribution: Fedora, Mandriva, PCLOS, SUSE - anything a can get my hands on
Posts: 140

Rep: Reputation: 15
Thumbs down


Hi,

I would like to know how I can automatically clear my /tmp folder every time my system boots up?
 
Old 06-05-2001, 05:34 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
In one of your startup scripts put something like
Code:
rm -rf /tmp/*
but I don't know how advisable this is!! What is filling it up and not cleaning up after itself? If anything in you boot process uses /tmp as a tempory store, or to hold some data between boots its not doing to be very happy when you trash it!

If you post the distro you are using I'm sure someone will be able to give you some advise as to what file to put it in.

HTH

Jamie...
 
Old 06-05-2001, 09:11 AM   #3
DrDebian
LQ Newbie
 
Registered: May 2001
Posts: 23

Rep: Reputation: 15
Quote:
Originally posted by FNC
I would like to know how I can automatically clear my /tmp folder every time my system boots up?
I have mounted my /tmp on /dev/null, now I have loads of free space. No need to clean it out, either.
 
Old 06-05-2001, 03:35 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,456
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
theres a package called tmpwatch, it seems to be configurable in deleting tru time/contents.
gotta be somewhere at freshmeat.net me thinks
 
  


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
tmp full- KDE won't start Trio3b Mandriva 2 11-04-2005 09:02 AM
/var/tmp/ full of .deb packages phats_O Debian 3 05-14-2005 09:06 PM
/tmp directory is full? Moses420ca Linux - Newbie 13 01-21-2005 07:48 PM
/tmp is full... benny Linux - Newbie 4 12-10-2003 04:59 AM
/tmp/ is full (so it sayz) the Linux - Newbie 5 04-03-2003 08:15 AM


All times are GMT -5. The time now is 05:49 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