Learn how to schedule a nightly reboot of the Ubuntu Server. Well you might ask why we need to reboot a server. Well the story went like this, I a rented server for hosting an eCommerce site and for some odd reason, the CPU usage goes 100% and I am not able to find out why it does that for the life of me. So a quick fix for me was to restart the server at midnight automatically, while I try to figure out why the server CPU usage is cratering to 100% after running for a few days.
Enough of my shenanigan.
I will show you how to SSH into a server and use the crontab to add a task so that it gets executed at the allotted time. I am not going in depth about crontab and SSH, but just enough to make you dangerous. I hope this helps.
Cheers!
Reference