Skip to content

Instantly share code, notes, and snippets.

@simonfongnt
Last active November 16, 2021 03:24
Show Gist options
  • Save simonfongnt/9ed37cc28783e9edb6d1afc1b74f0296 to your computer and use it in GitHub Desktop.
Save simonfongnt/9ed37cc28783e9edb6d1afc1b74f0296 to your computer and use it in GitHub Desktop.
ubuntu clean up space
rotate the files first so that recent entries are moved to inactive files
journalctl --rotate
Retain only the past two days:
journalctl --vacuum-time=30d
Retain only the past 500 MB:
journalctl --vacuum-size=500M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment