How to Shutdown Ubuntu 24.04

How to shutdown Ubuntu 24.04

If you are new to Ubuntu then you might be unaware of the method to shut down Ubuntu 24.04. If that’s the case, then, let me tell you that, when Ubuntu was launched it was purely based on commands and not on GUI. But, now Ubuntu is all GUI-based, and almost all the tasks are performed using GUI, even the shutting down of Ubuntu 24.04. So, it is a lot easier for beginner users to shut down Ubuntu because of GUI. All in all, you can shut down Ubuntu using the system menu (GUI), the “poweroff” command, the “shutdown” command, and the “halt” command.

Let’s head over to the guide below to learn various methods to shut down Ubuntu 24.04.

How to Shutdown Ubuntu 24.04

These are the methods you can follow to shutdown Ubuntu 24.04:

  • Method 1: Shutdown Ubuntu 24.04 Using the System Menu
  • Method 2: Shutdown Ubuntu 24.04 Using the Shutdown Command
  • Method 3: Shutdown Ubuntu 24.04 Using the PowerOff Command
  • Method 4: Shutdown Ubuntu 24.04 Using the Halt Command

Method 1: Shutdown Ubuntu 24.04 Using the System Menu (GUI)

The beginner and easy way to shut down Ubuntu is through the system menu. You can shut down the Ubuntu 24.04 by following the stepwise instructions given below:

  1. First, move to the top-left corner and click on it to open Ubuntu’s “System menu”.
  2. Then, click on the “Power” icon to open the “Power Off” options:

  1. Lastly, click on the “Power Off” option to shutdown Ubuntu 24.04:

After that, click on the “Power Off” button to shut down Ubuntu 24.04:

Method 2: Shutdown Ubuntu 24.04 Using the Shutdown Command

Besides GUI methods, there are several commands to shutdown Ubuntu 24.04, and one such command is the “shutdown” command. The “shutdown” command is specifically designed to shutdown the Linux system.

To shutdown Ubuntu 24.04, first, open the Terminal by pressing the “CTRL + Alt + T” and then execute the given command to shutdown Ubuntu immediately:

sudo shutdown -h now


If you want to shutdown Ubuntu 24.04 after a certain time in minutes, then, execute the below command, where you have to specify the number of minutes followed by the “-h” parameter:

shutdown -h (time in minutes)


Similarly, to schedule the shutdown, specify the scheduled time in “hours:minutes” format followed by the “-h” parameter as demonstrated below:

shutdown -h 12:30


Once the shutdown is scheduled, you can cancel it at any time by running the below command:

shutdown -c

Method 3: Shutdown Ubuntu 24.04 Using the PowerOff Command

Another Ubuntu command that can lead to immediate system shutdown is the “poweroff” command. To shutdown Ubuntu 24.04, simply execute the “poweroff” command followed by the “sudo” command, as demonstrated below:

sudo poweroff

Method 4: Shutdown Ubuntu 24.04 Using the Halt Command

Another command that immediately stops the processor and stops the OS from running, resulting in the shutdown shutdown is the “halt” command. Although, it is not recommended to run the “halt” command to shutdown the Ubuntu, because of its impact on the processor, but it does the required job.

To shutdown the Ubuntu using the “halt” command, run the below command:

sudo halt

You can also shutdown the Ubuntu system with minimum impact on the processor using the “halt” command by placing the “-p” parameter alongside the “halt” command:

sudo halt -p

Conclusion

To shutdown Ubuntu 24.04, first, press “CTRL + Alt + T” to open the “Terminal” and then execute the “sudo shutdown -h now” command to shutdown Ubuntu 24.04 immediately. To shut down Ubuntu 24.04 through GUI, first, click on the top-right corner > click on the “Power” icon > select the “Power Off” option to shut down Ubuntu 24.04. Alternatively, you can also execute the “poweroff” command and the “halt” command with the “sudo” command to shut down Ubuntu 24.04.

Keep visiting Linux World.