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




How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.

How to list the installed Packages on Ubuntu

It is only natural to start installing more and more software on your Ubuntu PC once you start using it. Similarly, it is also natural to lose track of the different packages that you have installed on your system. Eventually, you may be overwhelmed with the number of packages in your system and with the ones you hardly used.


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

All about Ubuntu editions and which version should you use?

Ubuntu is one of the most popular Linux distributions developed and released by Canonical, and not without reason. It has very enriched repositories, with support for all the programs you could ever need.

How to create a Live Linux USB drive using Etcher

In the Linux community, one thing is common between almost all of the users: trying out different Linux distributions. Most of the Linux based distributions have a great way of being tested as they provide ISO images for creating a Live USB.

What’s New in Ubuntu 20.04 LTS “Focal Fossa”

Ubuntu 20.04 LTS is out now! This is the successor to Ubuntu 18.04, which was released in April 2018 and still has three years of official support left. Code-named Focal Fossa, the new edition has all the bells and whistles included in it, making it one of the best Ubuntu releases yet. Let's find out more.

CopyQ – Advanced clipboard manager for Linux

We have all had that moment when we copied a text, but we first needed another one, and in the process, lost the first one. If you're lucky, you can get it back quickly with a bit of work.