Linux/Windows log files cleaner Terminal command example: python PurgeLog.py <filename.log> 10 5 where: 10 - max size(kb), 5 - maximum number of copies to keep