View Full Version : Cleaning up temp files

12th May 2007, 05:41 AM
I would like to know how to setup a cron job to periodicaly clean out /tmp folder or any other folder that may store temporary files

Also what command do i need to clean the /tmp folder on boot

12th May 2007, 06:06 AM
Forget it, there is a cron job to do just that already by default.

12th May 2007, 06:24 AM
The cron job is in /etc/cron.dailiy/tmpwatch. Try "man tmpwatch".