3 ways to shutdown Debian

Along with many other mundane tasks, Linux administrators must also perform a safe shutdown or reboot. This seems like the easiest task, but it should be done in a safe way. Our systems run processes continuously. If the system is not shut down properly, files and processes will not be safe, can corrupt files, and can leave your system in an unstable state. Therefore, it is recommended to shut down the system correctly and securely.

Like other operating systems, Linux also offers several ways to shutdown your system in different ways. In this article, we will explain in what ways you can shutdown your Linux OS:

  1. Using the user interface
  2. Via the app launcher search bar
  3. Via the command line Ubuntu Terminal

We used Debian10 OS to describe the procedure mentioned in this article.

Method 1: using the Debian GNOME user interface

One of the easiest ways to shutdown a Debian system is to use the menu available in the upper right corner of the desktop. A menu will appear, click the power off button in the lower right corner of the drop-down menu.

This will bring up the following dialog box. You can cancel, restart, or shutdown your system. The system will automatically shut down after 60 seconds if you do not select any of the options.

3 ways to shutdown Debian

Method 2: shut down Debian using the app launcher search bar

Another way to turn off the system is through the app launcher’s search bar. To do this, press the super-key on your keyboard. Enter a keyword in the search bar shutdown. In the results, select the power off utility.

3 ways to shutdown Debian

In the dialog box that appears, you can choose to cancel, reboot or shutdown the system as shown below. The system will automatically shut down after 60 seconds if you do not select any of the options.

3 ways to shutdown Debian

Method 3: Quit Debian from the Command Line (Terminal)

The third method that can be used to shutdown the system is the terminal, which can be used to perform any task.

We will discuss here some of the commands you can use to shutdown the system.

1. Debian shutdown command

Enter the command below to shutdown the system using malfunction team: Advertising

$ sudo shutdown

It will not shut down the system immediately. Instead, approx. 1 minute before turning off the system. So at this time, if you plan to cancel the shutdown process, you can enter shutdown –c.

3 ways to shutdown Debian

To shut down the system immediately, use the shutdown command with -P option as follows:

$ sudo shutdown –p now

You can also schedule a power outage process. For example, to shutdown the system after a certain time, for example, after 3 minutes, use the following command:

$ sudo shutdown +3

2. The Debian Poweroff Team

The poweroff command can be used to shutdown the system by sending an ACPI signal to instruct the system to turn off the main power.

Enter the following command to shutdown the system using the poweroff command:

$ sudo poweroff

3 ways to shutdown Debian

3. Debian stop command

The Halt command instructs the hardware to kill all processes and turn off the CPU, leaving it on. If the stop command is combined with -P option, it can also be used to shutdown the system. Enter the following command to shutdown the system using the halt command:

$ sudo halt -p

3 ways to shutdown Debian

4. Debian reboot command.

The reboot command, if used with the -p option, can also be used to shutdown the system as follows:

$ sudo reboot –p
3 ways to shutdown Debian

You have now learned so many ways to shut down the system. Using these methods, you can safely shut down the system without disrupting your files and OS.

3 ways to shutdown Debian

Sidebar