[K12OSN] Deleting Swap Files

Henning Wangerin mailinglists-after-041101_reply-not-possible at hpc.dk
Sat Mar 12 09:22:42 UTC 2005


On Sat, 2005-03-12 at 00:55, Eric Harrison wrote:
> Perhaps the best option would be to just automatically "rm -f
> /var/opt/ltsp/swapfiles/*.swap" whenever the server boots....

Well it would never hurt to do that ;-)

What about a simple 

find /var/opt/ltsp/swapfiles/ -name "*.swap" -atime +14 -rm \{\} \;

That would delete any file that had not been accessed i two weeks. The
periode could ofcourse be set higher if a terminal would be running for
more than two weeks betweene reboots.

-- 
Henning Wangerin <mailinglists-after-041101_reply-not-possible at hpc.dk>




More information about the K12OSN mailing list