How to Reboot Ubuntu

The Kernel Reinitialization Vector

When you update the core Linux kernel on an Ubuntu server, or modify fundamental networking configurations within `/etc/systemd/`, the operating system cannot dynamically apply these changes while the current architecture is active. You must execute a controlled, systematic shutdown of all running services, flush the memory cache to the physical disk, and command the motherboard to perform a hard electrical cycle, rebooting the machine from a clean state.

How to Reboot Ubuntu

The Ubuntu environment utilizes the powerful `reboot` command, which interfaces directly with the `systemd` initialization manager to ensure a safe shutdown sequence that prevents data corruption.

1. Open your terminal application or connect to the server via SSH.
2. The Standard Reboot Command (Immediate):
* Because rebooting a server instantly terminates all active database connections and web traffic, the kernel requires absolute superuser authorization.
* Type the following command:
sudo reboot
* Press Enter. You will be asked for your password. Once entered, the SSH connection will instantly sever as the server goes offline.
3. The Scheduled Reboot Command (Best Practice for Production):
* If you are managing a live production server, you should never reboot it instantly without warning active users. You must use the `shutdown` command with the `-r` (reboot) flag and a time delay.
* To reboot the server in exactly 15 minutes, type:
sudo shutdown -r +15 "WARNING: Server rebooting for kernel updates in 15 minutes. Save your work."
* Press Enter. The kernel will instantly broadcast your warning message to every single user currently logged into the server via SSH. It will then initiate a countdown timer.
* The Abort Command: If you realize you made a mistake and need to cancel the scheduled reboot, type sudo shutdown -c (cancel) and press Enter.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.