Skip to content

How to schedule a one-time reboot on Ubuntu

Published: September 27th, 2025 | Updated: September 28th, 2025 Ubuntu

Sometimes you want your server to reboot at a specific time, just once, not on a recurring schedule like with cron. A neat way to do this on Ubuntu is by using the at command.

If you haven’t yet installed the at packe, do so by running sudo apt install at.

Here’s how it works

  1. Open a terminal and schedule the job with at. For example, to reboot at 01:00: sudo at 01:00.

  2. At the at> prompt, type the command you want to run: /sbin/shutdown -r now.

  3. End the input with Ctrl+D.

That’s it, your reboot is scheduled.

Other things to do with at

Want to check what’s in the queue? Just run sudo atq and you can see the planned tasks.

Changed your mind and want to cancel the job? Remove it by ID (usually 1 if it’s your first one). Just run sudo atrm 1 and the job is removed.

This is a simple, one-off way to schedule reboots (or any other command) without messing around with cron jobs. For more info about the at command, check out man at.

An alternative to at

You can also use shutdown to schedule a reboot.

Just use shutdown -r 01:00 to reboot at the next occurrence of 01:00.

Thanks to Lloyd Weehuizen for bringing this to my attention.

About Marcel Bootsman

Marcel discovered the web in 1995. Since then he has paid attention to and worked with lots of technologies and founded his own WordPress oriented business nostromo.nl in 2009.

Currently Marcel is Partnerships & Community Manager EMEA at Kinsta. where he helps clients and partners grow with their business with Managed Hosting for WordPress, and Application, Database, Static site hosting.

You can contact Marcel on a diverse range of online platforms. Please see the Connect section on the homepage for the details.