Skip to content

Instantly share code, notes, and snippets.

@zh4n7wm
Created August 18, 2020 02:08
Show Gist options
  • Select an option

  • Save zh4n7wm/1c7e8e713b59a87b13810e742983a851 to your computer and use it in GitHub Desktop.

Select an option

Save zh4n7wm/1c7e8e713b59a87b13810e742983a851 to your computer and use it in GitHub Desktop.
systemd tips

journal disk usage

check journal disk usage

journalctl --disk-usage

reduce journal size

edit /etc/systemd/journald.conf

SystemMaxUse=50M

clean journal files manually

remove archived journal files until the disk space they use falls below 100M:

journalctl --vacuum-size=100M

make all journal files contain no data older than 2 weeks:

journalctl --vacuum-time=2weeks

refs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment