Scheduling a reboot on a remotely located Ubuntu server

You can also use at to schedule reboots. For example sudo at 22:00 to run the command at 22:00 as root. Then enter the command you want to run: /sbin/shutdown -r now and end with ctrl-d. If you decide not to run this command, run sudo atrm 1 to delete the first one in the at queue. With sudo atq you can see the queue.


On the terminal type shutdown -r 10 Waiting 10 minutes before the restart& that will make the server reboot in 10 mins, broadcast a message explaining that and pressing control+c will interrupt the reboot request.

On the terminal type shutdown -r 18:00 Rebooting at 18:00 hours& that will make the server reboot at 18:00 hours, will broadcast a message explaining that and can be interrupted with control+c.

You can also interrupt any shutdown / reboot request on your "working" terminal with shutdown -a.