in

LinuxLinux

Linux Shutdown Commands- How to Shutdown Ubuntu & More using Terminal

Shutdown, Hibernate, Suspend various Linux Distros using the Terminal Commands

Shutdown Ubuntu Command
Reading Time: 5 minutes

L

inux Shutdown Commands: It is easy to carry out Shutdown Operations on Linux Distributions using GUI. However, it will be more comfortable if we can perform operations such as Shutdown, Hibernate and more on Linux Distros on the Terminal using Terminal Commands. In this article, we will see How to carry out the above operations in Ubuntu 19.04 Disco Dingo, Ubuntu 18.04.2 LTS and also on other Distros such as Fedora, RHEL, CentOS and more.

Jump to:

Linux Shutdown Commands using Terminal Commands:

Here, we will see How to carry out Shutdown, Suspend, Hibernate, and more operations on Ubuntu 19.04, Ubuntu 18.04.2 LTS, Ubuntu 16.04, Ubuntu 18.10 and other Ubuntu-based Distros such as Linux Mint and also on other distros such as Fedora, RHEL, CentOS and more.

Various Shutdown Processes on Ubuntu:

Shutdown Ubuntu right away:

$sudo power off

Ubuntu Shutdown after Confirmation:

Using the following command, the shutdown process can be initiated but however System Password has to be entered to authenticate and complete the Shutdown.

$sudo poweroff

Shutdown your Ubuntu after a Specified Time:

Suppose you are working late and if you are not sure about your sleep then you may set up a shutdown process with a specified time. The system will automatically shut down your Ubuntu after the specified time. Kindly use the following command.

Syntax:    $   shutdown -h (Time in Minutes)

Check this too  10+ CronJob Scheduling Task In Linux Using Terminal

Example: $   shutdown -h 15

Note: Kindly specify the time in “Minutes”. With the above example, the system will initiate the shutdown process after 15 minutes.

Linux Shutdown Commands
Specify Shutdown Time in Minutes

Shutdown Ubuntu on the given exact time:

This is a bit different from the above method. Here, you can actually specify the exact time of Shut down. Kindly use the following command.

Syntax:    $   shutdown -h HH:MM

Example: $   shutdown -h 17:15

Note: HH represents the Hour and MM represents Minutes. It follows the 24-hour clock and hence specify the time accordingly.

Linux Shutdown Commands
Specify Exact Shutdown Time

How to cancel the Shutdown process which is specified:

All the above process shows How to Specify the Shutdown process based on your convenience. However, if you change your mind and if you wish the cancel any specified Shutdown Process that you have specified then kindly use the following command on the terminal.

Syntax: $   shutdown -c

Linux Shutdown Commands
Cancel the Shutdown

The above command will cancel the shutdown process if specified.

Getting Help from Ubuntu for Power Off:

$   poweroff –help
Linux Shutdown Commands
Getting Help from ubuntu

The above command will display help options with Power Off on Ubuntu.

How to Suspend Ubuntu using Terminal:

There are several commands that can be used on almost all Linux Distros to carry out a certain process. The following Suspend command can be used on Linux Distros such as Ubuntu, RHEL, Fedora, CentOS, Debian, and more.

$systemctl suspend
Linux Shutdown Commands
Suspend Linux System

How to Hibernate Ubuntu using Terminal:

Kindly use the following command to Hibernate your Ubuntu, Fedora, Debian, RHEL, CentOS and more.

$systemctl hibernate
Linux Shutdown Commands
Hibernate Linux System

Frequently Asked Questions- FAQ:

 

Check this too  5 Basic Linux Tips & Tricks Command Line - Interesting Tricks

How do I Shutdown my Linux?

If you wish to shut down any Linux Distros using Terminal Commands, Kindly use “sudo poweroff” to shut down Ubuntu, Fedora, RHEL, CentOS and more. You may also use the Shutdown button(GUI) to perform Power off operation.

What does a Shutdown command do?

Shutdown command generally Power off a system. The system will close all the running applications safely and finally turn off the system thereby putting the system to rest.

How to Specify the Shutdown time on Linux?

You can specify the Shutdown time on any Linux Distros using the command “shutdown -h HH:MM“. Example, “shutdown -h 18:45”. The system will initiate the shutdown process by 1845 Hrs.

How do I shut down Ubuntu using Terminal?

You can shut down the Ubuntu system using the command “sudo poweroff

 

Get in Touch with Us:

Users generally use terminal more on Linux based Distributions than Windows Operating systems and we are more comfortable with working on GUI when it comes to Windows. Though Linux is more particularly used on Terminal side, the latest generation Linux Distros make a beautiful and User-friendly interface which makes them a Domestic Purpose PC and thereby attracting the normal users other than its success on the server side.

The above article provides detailed information on How to perform Shutdown, Hibernate, Suspend and other related Operations using Terminal Commands on various Linux Distros such as Ubuntu, Fedora, RHEL, CentOS and more. If you have any Query on the Linux Shutdown Commands article, then Kindly Comment Us and we will revert to you with a solution ASAP.

Check this too  10 Interesting Usages of "!" Operator in Linux Commands
Article Review
  • 95%
    Article Explanantion - 95%
  • 92%
    Topics Covered - 92%
  • 99%
    Command Listed - 99%
  • 95%
    Image Explanation - 95%
95%

Summary

For more tutorials, kindly visit

Written by Rachel

I'm Rachel, From Arizona. Am playing the "Content Management" Role in Tec Robust. I started working in TR from Jan 2019. Big Marvel Fan.

Contact me:
tecrobust [@] gmail.com
Sub: Message to Rachel

Comments

Leave a Reply

Loading…

0

Comments

0 comments

Reset Firewall Ubuntu

How To Reset the Firewall on Ubuntu 16.04 & 18.04 LTS Server

Install Vitetris on Ubuntu 19.04/18.04.2 LTS & Enjoy Gaming !!