clearing history
suvayu ali
fatkasuvayu+linux at gmail.com
Tue Jan 11 07:52:19 UTC 2011
2011/1/10 Jorge Fábregas <jorge.fabregas at gmail.com>:
> On 01/10/2011 03:51 PM, Parshwa Murdia wrote:
>> if we want to clear the history of these files (if are created) in Fedora,
>> how can we do?
>
> If your "clear the history" means to remove temporary files... There are
> directories designated for temporary stuff (/var/tmp and /tmp) and there
> is a program called "tmpwatch" which runs by means of:
>
> /etc/cron.daily/tmpwatch
>
> ...which rruns daily and cleans old files in these directories. You, as
> a regular user, don't usually need to take care of this.
$ cat /etc/cron.d/tmpwatch
# run tmpwatch everyday at midnight
0 0 * * * root /usr/sbin/tmpwatch -umc 120 /tmp
This should clean your temporary files every five days (120 hrs). You
can change the 120 to suit your needs.
--
Suvayu
Open source is the future. It sets us free.
More information about the users
mailing list