Translations:Limit the size of .log files & the journal/117/en
From Manjaro
Views
Actions
Namespaces
Variants
Tools
The above script can be used as is, it does not need to be made executable, it just needs to be put somewhere that logrotate will see (in this example) every day.