Interviews1 answer
How would you truncate large growing file to 100 Mb file size only and how would you keep such files just for last 3 days in Linux?
1 Answer
I use to commends:
find /path/to/files* -mtime +3 -exec rm {} \;
truncate -s 100 MB /path/to/files*
Mono LogPosted Jan 4, 2017, 11:51 PM EST

