Skip to content

清理/var/log/journal 日志文件

Tags:

先看看究竟占了多少

journalctl --disk-usage

重启之后也会保持住设置

# 只保留近4周的日志 & 100M
journalctl --vacuum-time=4w --vacuum-size=100M

Leave a Reply

Your email address will not be published.