|
||
---|---|---|
README.md | ||
clear-journal-log |
README.md
Clear journal log
Prerequisites
Ubuntu 20.04 or higher.
Download the script
git clone https://git.x-files.dk/ubuntu-server/clear-journal-log.git
Usage
cd clear-journal-log
chmod +x clear-journal-log
sudo cp clear-journal-log /usr/local/bin
Optional create crontab entry
echo "0 2 * * 7 root /usr/local/bin/clear-journal-log >/dev/null 2>&1" | sudo tee /etc/cron.d/clear-journal-log
systemctl restart cron
Postinstall
Nothing to do.
More guides
More guides can be found on [wiki.x-files.dk]
Last tested
January 12th 2024 on Ubuntu 22.04.