Created
May 5, 2022 08:09
-
-
Save ttys3/87f51cb4fef62921e5218019bc08cc6c to your computer and use it in GitHub Desktop.
clean-systemd-logs.sh
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
#!/bin/sh | |
# ref https://unix.stackexchange.com/a/457902 | |
journalctl --rotate | |
journalctl --vacuum-time=1s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment