Re: clearing history

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/1/10 Jorge Fábregas <jorge.fabregas@xxxxxxxxx>:
> 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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux