Categories: DebianLinuxShell

How to Shutdown or Reboot Debian 10

This small tutorial shows two ways of shutting down or rebooting a Debian 10 server or desktop using the terminal. The same commands will work for Debian 11 too.

Using shutdown command

Open the terminal and execute the following command to shut down the machine,

shutdown --poweroff

This will shut down the machine. If you want to cancel, you have to use the -c switch along with the shutdown command.

Similarly, when you have to reboot, execute the below command. If you want to cancel your action, use --reboot option.

shutdown --reboot

Using systemctl command

An alternative to the shutdown command is to use the systemd systemctl command.

Debian 10 power off using systemctl:

systemctl poweroff

Debian 10 reboot using systemctl:

systemctl reboot
Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Recent Posts

How to Install Magento 2 on AlmaLinux

Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…

1 year ago

How to Install ISPConfig Hosting Control Panel with Apache Web Server on Ubuntu 24.04

ISPConfig is an open-source control panel that allows users to manage multiple servers from a…

1 year ago

How to Test your Email Server (SMTP) Using the Telnet Command

As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…

1 year ago

Managing Network Interfaces and Settings on Ubuntu 24.04 with nmcli

Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…

2 years ago

Using Restic Backup on Ubuntu 24.04

Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…

2 years ago

Installing phpMyAdmin on Rocky Linux 9 and Securing it with Let’s Encrypt SSL

phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…

2 years ago