Site Fuse! programming, design, hosting, promotion and advertising tips for webmasters

tmpwatch usage info

Share   

user photo

MrPhear   1 years, 6 months ago

Linux / Unix Command: tmpwatch

tmpwatch recursively removes files which haven't been accessed for a given number of hours. Normally, it's used to clean up directories which are used for temporary holding space such as /tmp.

usage;
/usr/sbin/tmpwatch HOUR DIRECTORY


1080 = 45.0 days
720 = 30.0 days
240 = 10.0 days

Here's the command I use on my servers;
/usr/sbin/tmpwatch 1080 /tmp
/usr/sbin/tmpwatch 720 /var/tmp
user photo
Guest