Ubuntu must remember to clean up the log in time

problem

When using the machine today, it prompts that the available space is insufficient.

Troubleshoot

# du -h --max-depth=1 /var/log/*
2.3G	/var/log/installer
4.0G	/var/log/journal/16402455fdc44373ac5324fa1256a4c2
4.0G	/var/log/journal
255G	/var/log/kern.log
224G	/var/log/syslog
32G	/var/log/syslog.1
3.9M	/var/log/sysstat
12K	/var/log/tallylog
76K	/var/log/unattended-upgrades
16K	/var/log/wtmp
其他省略

The culprit was traced to kern.log and syslog, and it recorded nearly 470G of logs. Admire! Record it and remember to clean it up later.

Guess you like

Origin blog.csdn.net/u014377853/article/details/89319216