How to set max size for a specific file in linux
Clash Royale CLAN TAG #URR8PPP How to set max size for a specific file in linux I have an application which will write to a particular log file until the user session is going on. What i am looking for is to put a max cap on the size of a log file so it does not grow beyond a particular size, 2 scenarios which will be useful are Any utility which keeps an eye on the log file and as soon as it reaches the max size start truncating the file content from the start so the application can keep appending the content at the end. Any utility by which while creating the file i can specify the max size of that file and when file reaches that maxsize it should simply not grow beyond that point. What i don't want is man logrotate – Cyrus Dec 17 '17 at 10:46 man logrotate @NiallCosgrove How to put a cap on the size o...