How to Shutdown Linux Using Command Line and GUI?

Shutting down Linux using the command line and GUI is super easy if you know how to do it correctly. Today in this article, I will show you exactly how you can shutdown Linux using the command line.

Believe me it is very easy, all you need to do is follow a legit guide.

Linux is a flexible and extensively used operating system that is well-known for its adaptability and customization. Linux offers a wide range of options for users and different levels of technical knowledge.

If you are running Linux, at one point you will need to shut down your system and turn off the computer. You can do this in two different ways with command line and graphical user interface (GUI).

In Linux, when you close your operating system, it usually doesn’t mean that you actually turned off the power to the device. The ‘shutdown’ command is used to free up space on the hard drive by removing temporary files or updating their permissions.

It also tells any programs that may be open that they should save their files before closing them.

Both methods (command line and GUI) are straightforward and efficient, and choosing one over the other depends on personal preference and familiarity with the Linux operating system

Shutdown Linux Using Command Line:

  1. Use Shutdown Command to Turn Off Linux:

Shutdown is a simple and easy command to kill all running processes and close the last opened windows. When you type shutdown command into the Linux terminal, it will prompt you for confirmation. It will ask you to confirm if the system should close down with all its running processes or should it just shutdown.

  1. Shutdown Linux System Using Halt Command:

Halt is a command that is used to tell the Linux system to shutdown immediately and terminate all running processes. Like, shutdown it will also prompt you for confirmation. You need to use this command when you are ready to turn off the computer immediately and don’t want anything else running in the background.

  1. Permanently Disable Shutdown Command:

Though Linux offers an easy way to close your system, it still gives you full control over what happens when you terminate the system. If at any point you want to stop being prompted for confirmation then use this simple code. Use this without quotations in order to make it work.

  1. Turn Off Linux System Using Poweroff Command:

Poweroff is a very simple command that will have the Linux system turn OFF at once. This is the quickest and most effective technique to shut down the Linux system. If you want to shutdown the Linux system in this way, type this command and then press enter:

Shutdown Linux Using GUI Method:

  1. Turn Off Gnome-Based System:

Multi-user systems can be turned off using the Gnome-based shutdown tool. To shut down Gnome, click on the wrench icon in the top right corner of the screen. To turn off your system, click on the option ‘Shut down’, and then click on ‘Power Off’.

  1. Shut Down KDE-Based System:

You can shutdown the KDE-based system in a similar way. Click on the ‘system tray’. Now click on the ‘power’ icon. From here click on the ‘Shut Down’ option.

  1. Turn Off Xubuntu System:

To close Xubuntu, click on the bottom left corner of your screen where it says ‘super’, which means superuser mode. Next, find the shutdown button and click on it to turn off your system.

  1. Shut Down Mate-Based System:

To shutdown a Mate-based system, click on the bottom left corner where it says ‘prior’ which means previous window. Find the stop button and click on it to close down your system.

  1. Shut Down Cinnamon-Based System:

To shutdown a Cinnamon-based system, click on the top right corner where it says ‘super’, which means superuser mode, and then find the shutdown button and click on it to turn off your system.

  1. Shut Down Unity Desktop: 

To check which user is logged in under Unity desktop, press Alt+F2 keys at once. Now type ‘unity’ in Ubuntu terminal to switch to Unity Desktop.


In conclusion, shutting down a Linux system can be accomplished using both the command line and GUI methods. The command line method requires the use of the “shutdown” or “halt” command along with options that can determine the time delay before shutdown, the message displayed to users, and more.

On the other hand, the GUI method typically involves navigating to the system menu and selecting the “shutdown” option.

If you are having any queries then do let us know, we will try to solve your query as soon as possible.


Add a Comment

Your email address will not be published. Required fields are marked *