Last active
November 16, 2021 03:24
-
-
Save simonfongnt/9ed37cc28783e9edb6d1afc1b74f0296 to your computer and use it in GitHub Desktop.
ubuntu clean up space
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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