The 3 Best Ways to Restart Ubuntu Server

One of the tasks that are common for a system admin is to restart the Ubuntu Server. Here are the three commands that can be used to reboot the Ubuntu Server.

The main difference between the Ubuntu Desktop version and the Server is that the Ubuntu Desktop is used for personal use. The Server edition can be used to serve up Applications, Websites, E-mail Servers, File shares, and more other services that can help expand the functionality of businesses.

Usually, users of the Ubuntu Server depend on the Terminal to perform their daily tasks. One of the tasks that are common for a system administrator is to restart or reboot the Ubuntu Server. The primary reason for resetting the Ubuntu Server is to complete the Server update or to apply some new configurations.

In this article, we are going to discuss the three important commands that can be used to reboot the Ubuntu Server.

The Best Ways to Restart Ubuntu Server

The following commands should be covered:

  • reboot
  • shutdown
  • systemctl

It’s highly recommended before starting your system, make sure that you have saved all your valuable work. Some commands may exit all the opened applications without saving your progress, and you may lose your work.

Method 1: Restart Ubuntu Server using the Reboot command

One of the easiest methods to restart your machine is through using the reboot command.


Reboot Ubuntu Server Using Reboot Command

Sometimes you may need some administrative privileges to execute the reboot command; then you can use the following command:

sudo reboot

Reboot Ubuntu Server Using Sudo Reboot Command

In case you need to force the restarting process without waiting for each application to exit then using the -f option as following safely:

sudo reboot -f

Force a Reboot Ubuntu Server
Force a Reboot Ubuntu Server

Method 2: Reboot Ubuntu Server using Shutdown command

The shutdown command is used to shut down your machine. However, you can use the -r option along with the shutdown command to reboot your machine as following:

sudo shutdown -r

Reboot Ubuntu Server Using Shutdown Command
Reboot Ubuntu Server Using Shutdown Command

Moreover, you can set a time to make your system reboot. For example, in case you need to restart your Ubuntu Server after 20 minutes then you can use the next command:

sudo shutdown -r +20

Reboot Ubuntu Server After 20 Minuts
Reboot Ubuntu Server After 20 Minutes

Meanwhile, in case you need to cancel the scheduled shutdown, use the following command:

sudo shutdown -c

Cancel The Shutdown Schedule
Cancel The Shutdown Schedule

Method 3: Reboot Ubuntu Server using the Systemctl command

In this method you can use the systemctl command to reboot the Ubuntu server:

sudo systemctl reboot

Reboot Ubuntu Server Using systemctl Command

Those are the various ways to reboot your Ubuntu Server. I hope you enjoyed this handy guide. If you have anything to share, do let us know in the comments below.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.


Please enter your comment!
Please enter your name here





“I am because you are,” is the themed meaning behind the famed Ubuntu operating system. Moreover, this mindful phrase is practical because it continues to lure more individuals into the Ubuntu universe. Because great power beckons great responsibility, Ubuntu is stepping up. It realizes that different users will want to use the Ubuntu operating system software differently.
The Ubuntu Cinnamon Remix brings together Linux Mint's Cinnamon desktop with the Ubuntu Core. While some users are welcoming the new flavor of Ubuntu with open arms, others are scratching their heads, wondering where it fits in.

CentOS Vs. Ubuntu Server : Everything You Need to Know

Choosing the perfect Linux distribution to set up your server can be confusing since Linux provides a limitless number of options. The main reason behind these many distributions is because Linux is an opensource platform. Anybody with the required skills can contribute to the development or build and release their distribution. Currently, there are more than 600 Linux Desktop and Server distributions in the market.

Ubuntu 19.10 (Eoan Ermine) Beta Installation and Overview

It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.

Ubuntu MATE 20.04 LTS Review: Refinement at its Best

Ubuntu MATE 20.04 LTS was released a week ago after two years of development. Official updates and security patches will be provided until April 2025. I have installed it on my test laptop for a spin and here are my observations based on almost a week usage.

How to install Android Studio on Ubuntu

Android Studio, like the name suggests, is a full-featured cross-platform IDE that enables you to develop Android applications to run on any android device. Based on JetBrains' IntelliJ IDEA, Android Studio comes installed with all the necessary features needed for Android development.