Somenow I've overlooked that my /tmp file has been filling up with large
files for over a year.
May I ask what is a reasonable way to handle the /tmp directory, without
deleting large files that are maybe only a few days old?
Thank you for any ideas,
Alan
--
Alan Davis, Kagman High School,
On Tue, 2007-10-02 at 00:05 +1000, Alan E. Davis wrote:
Somenow I've overlooked that my /tmp file has been filling up with
large files for over a year.
May I ask what is a reasonable way to handle the /tmp directory,
without deleting large files that are maybe only a few days old?
This can be done easily as shown:
*find /tmp/ -mtime +1 -exec rm {} \;
Change +1 to the number of days old you want the files to be before deletion
*
On Tue, 2 Oct 2007 00:05:03 +1000, Alan E. Davis wrote:
May I ask what is a reasonable way to handle the /tmp directory, without
deleting large files that are maybe only a few days old?
How often do you reboot? If you don't measure uptimes by the seasons,
setting WIPE_TMP=yes
4 matches
Mail list logo