unix linux usefull commands; clear up disk space
df -h
ncdu - check directory sizes
ss -plunt for app and port list
clear log:
rm /var/log/btmp.*
journalctl --disk-usage
journalctl --vacuum-size=50M
journalctl --verify
nano /etc/systemd/journald.conf
SystemMaxUse=50M
SystemMaxFileSize=12M
systemctl restart systemd-journald
nano /etc/logrotate.conf
daily
rotate 1
https://unix.stackexchange.com/a/605809/346938
https://www.linuxuprising.com/2019/04/how-to-remove-old-snap-versions-to-free.html
Комментарии
Отправить комментарий