df -Hdu -s -h /var/wwwdu -s -h /var/log/https://ubuntuhandbook.org/index.php/2020/12/clear-systemd-journal-logs-ubuntu/ https://askubuntu.com/questions/1238214/big-var-log-journal
journalctl --disk-usage
# If you decide to clear the logs, run command to rotate the journal files.
# All currently active journal files will be marked as archived, so that they are never written to in future.
sudo journalctl --rotate
#Delete journal logs older than X days:
sudo journalctl --vacuum-time=2days
#Delete log files until the disk space taken falls below the specified size:
sudo journalctl --vacuum-size=100M
#Delete old logs and limit file number to X:
sudo journalctl --vacuum-files=5#Install optimization libs
sudo apt install jpegoptim pngquant gifsicle;
#Optimize gif images
find PATH -name '*.gif' -exec gifsicle -O3 -b {} \;
#Optimize jpg images
find PATH -name '*.jpg' -exec jpegoptim --strip-all --preserve --totals --all-progressive {} \;
#Optimize png images
find PATH -name '*.png' -exec pngquant --speed 1 -f -v --ext .png {} \;
Setup a secure VPS
1st step
2nd step