The Kernel Reinitialization Vector
When operating a headless Ubuntu server, installing a critical kernel patch (such as a mitigation for a massive CPU vulnerability) or altering a master system daemon (like `systemd`) does not take effect immediately. The old binaries are still locked into the active RAM matrix. To force the server to execute the new code payloads, you must instruct the core Linux kernel to initiate a controlled shutdown sequence—gracefully terminating all active database queries, unmounting the file systems to prevent data corruption, and commanding the physical CPU to execute a cold boot.
How to Restart Ubuntu
The UNIX architecture requires absolute root privileges to execute a power cycle, as a stray command could catastrophically disconnect hundreds of active remote users. You must inject the execution command via the terminal.
1. Open your terminal application or connect to the server via SSH.
2. Method 1: The Standard Controlled Reboot (`reboot`):
* This is the most common and mathematically simple execution pathway.
* Type exactly:
sudo reboot
* Press Enter and supply your root password.
* The Execution: The SSH connection will instantly sever, outputting `Connection closed by remote host`. The kernel broadcasts a SIGTERM signal to all processes, flushes the I/O buffers, and reboots the silicon. The server will be offline for 30 to 120 seconds.
3. Method 2: The Scheduled Shutdown (`shutdown`):
* If you are operating a production server, instantly rebooting it will cause severe data loss for active users. You must mathematically schedule the reinitialization and broadcast a warning message.
* The Syntax: `sudo shutdown -r [time] “[message]”` (The `-r` flag explicitly tells the daemon to reboot, not just halt power).
* Type exactly:
sudo shutdown -r +5 "Server rebooting in 5 minutes for kernel update."
* Press Enter.
* The Execution: The OS will instantly broadcast the text message to every active terminal session. The reboot daemon will mathematically count down 5 minutes before executing the cold boot.
* The Failsafe: To cancel a scheduled reboot before the timer expires, type `sudo shutdown -c` and press Enter.
4. Method 3: The Immediate Halt (`shutdown now`):
* If the server is under active mathematical attack or experiencing a catastrophic hardware failure, you must bypass the grace period.
* Type exactly:
sudo shutdown -r now
* Press Enter. This executes an instantaneous, aggressive reboot sequence.