HomeHome  PortalPortal  FAQFAQ  SearchSearch  RegisterRegister  Log in  
openFate
openFATE - openSUSE feature tracking
Similar topics
Latest topics
» Difference between 42.2 and 42.1
by findoctr Thu Dec 15, 2016 7:53 pm

» openSUSE Leap 42.1 ?
by findoctr Fri Feb 05, 2016 8:09 pm

» Happy Turkey Day
by findoctr Thu Nov 26, 2015 1:45 pm

» Happy 4th of July!
by bozo Sat Jul 04, 2015 12:56 pm

» It's been a while ...
by bozo Mon Feb 23, 2015 8:34 pm

» Mondo chillers
by bozo Wed Feb 18, 2015 5:11 am

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
IRC Channel
You can also find us on IRC's freenode.net as #suseunbound.

Share | 
 

 Keep your /tmp folder clean automatically

View previous topic View next topic Go down 
AuthorMessage
bdquick
Admin
avatar

Posts : 583
Join date : 2010-02-22
Age : 37
Location : Central Iowa

PostSubject: Keep your /tmp folder clean automatically   Fri Sep 14, 2012 8:16 pm

I like to keep my temp folders cleaned out. Generally nothing in there that I need to keep and it just wastes hard drive space. If you'd like your computer to do some house keeping for you:


  1. Go To YAST -> System -> /etc/sysconfig Editor
  2. Expand "System"
  3. Expand "Cron"
  4. Now you will see several entries you can change. Set them to values you feel are reasonable for you.
  5. "MAX_DAYS_IN_TMP" - This is the number of days a file can go unused in /tmp before deletion. I have mine set to 14 days.
  6. "TMP_DIRS_TO_CLEAR" - This is probably blank so it defaults to /tmp. If you would like to clear other folders, they could be added here.
  7. "OWNER_TO_KEEP_IN_TMP" - Files created by the specified user will not be deleted. Defaults to "root".
  8. "CLEAR_TMP_DIRS_AT_BOOTUP" - Like it says will clean them out while booting up. This ignores the owners to keep option, and deletes all files no matter owner or number of days. This is probably defaulted to "no". I have mine set to "yes".
  9. "DAILY_TIME" - This is to set the time you want the /tmp folders cleared. If you have a server that is on all the time you could have them cleared out at 3 A.M. to avoid slowing down daily traffic. The time should be entered in 24 hour time, not 12 hour.


There is also an option to set up a "long tmp" folder(s). Perhaps useful if you a folder where you create backups, but don't need them after a certain period.

_________________
I'm here where ever here is.
Back to top Go down
bozo
Admin
avatar

Posts : 402
Join date : 2010-02-23
Location : Way out in the sticks in the Gold Country of California

PostSubject: Re: Keep your /tmp folder clean automatically   Fri Sep 14, 2012 11:41 pm

this sounds like a good idea. Every so often I think about cleaning out the /tmp folder, but I'm always to chicken to delete stuff that I don't know what it is. If I'd set it up to do it automatically, I just woldn't know about it. What I don't know wan't hurt me, right?

clown

_________________
"The trouble with quotes on the internet is that you never know if they are genuine." - Abraham Lincoln
Back to top Go down
Laz
Gecko
avatar

Posts : 201
Join date : 2012-06-13
Location : Delta BC

PostSubject: Re: Keep your /tmp folder clean automatically   Sat Sep 15, 2012 11:46 am

Is there a valid reason for keeping TMP files? Seems to me anything one wants to keep will be saved anyway. I always looked on TMP files as a "scratchpad" or work in progress. Am I wrong in this?
Back to top Go down
bdquick
Admin
avatar

Posts : 583
Join date : 2010-02-22
Age : 37
Location : Central Iowa

PostSubject: Re: Keep your /tmp folder clean automatically   Sat Sep 15, 2012 1:51 pm

I don't know of any reason to keep them. I've never understood why the default isn't to remove them, but I don't know of any distro that defaults to removing them either. Its something I always try and remember to set, but often forget.

_________________
I'm here where ever here is.
Back to top Go down
Laz
Gecko
avatar

Posts : 201
Join date : 2012-06-13
Location : Delta BC

PostSubject: Re: Keep your /tmp folder clean automatically   Sat Sep 15, 2012 7:13 pm

Never thought to look at Cron to do this. Great tip!
Back to top Go down
coldkeys
Newt
avatar

Posts : 1
Join date : 2014-09-16

PostSubject: Re: Keep your /tmp folder clean automatically   Tue Sep 16, 2014 4:47 am

Thank you, this a great time saver - and a way of using cron I was not aware of.
Back to top Go down
Sponsored content




PostSubject: Re: Keep your /tmp folder clean automatically   

Back to top Go down
 
Keep your /tmp folder clean automatically
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» HOW TO RUN SERVER AUTOMATICALLY IN ECLIPSE USING SELENIUM RC
» automatically run Selenium tests c# in Microsoft test manager
» Winreducer Stucked on Open a Folder
» How to delete cache automatically in selenium
» Issue - Selenium checks object in some cache

Permissions in this forum:You cannot reply to topics in this forum
SUSEUnbound :: Help Section :: Tips and Tweaks-
Jump to: