journalctl日志清理 - Thu, Mar 18, 2021
journalctl日志清理
journalctl --disk-usage
查看日志所用的空间
# journalctl --disk-usage
Archived and active journals take up 4.0G in the file system.
sudo journalctl --vacuum-size=50M
制定日志的最大空间为50M
Vacuuming done, freed 3.9G of archived journals from /var/log/journal/ece7bca439b64bc0953aaa4efe9b62c9.