Tasks Clean Logs server

Truncate logs

find /var/log/ -type f -name "*.log" -exec truncate -s 0 {} +
find /var/log/ -type f -name "*.gz" -delete
sudo journalctl --vacuum-time=1weeks

 

Katen Doe

Katen Doe

Hello, I’m a content writer who is fascinated by content fashion, celebrity and lifestyle. She helps clients bring the right content to the right people.

Press ESC to close