Ubuntu was originally a terminal operating system, but over time, Linux gradually introduced a graphical interface into its operating system. Currently, GUI methods are the only way to solve many operating system problems. Well, we are here to teach you some cool methods that will help you turn off your system in Ubuntu, as a professional!
Ubuntu, like all other operating systems, offers several shutdown methods, which include such simple methods as pressing a button, as well as transmitting commands to the system through the terminal.
Using the system menu
The Ubuntu system menu has a power off button in the drop-down menu in the upper right corner of the desktop. When you press the power button, a dialog box appears with 3 options.
• Cancel • Reboot • Shutdown
You can make a choice after 60 seconds, after 60 seconds the system will automatically shut down.
The terminal allows users to write commands to be executed by the system. The terminal can be opened simply pressing Alt + Ctrl + T keys on the keyboard or right-click on the desktop and click open terminal. Several commands are used to shut down the system.
Power off and on command
sudo power off
This command shuts down the system immediately.
This command asks for a password and then shuts down the system.
Shutdown -h now
This command will shut down the system immediately. But if you want to shut down the system after a certain time, you can specify the time instead of “now.” He will turn off the system after the specified time. For this type of command:
shutdown -h (time in minutes)
This command will shut down the system after 1 minute.
To cancel this shutdown command, enter the command:
An alternative command to shut down the system after a certain time:
This will shut down the system after 30 minutes.
You can also leave a comment with the shutdown command. Enter command
shutdown +30 "you have a meeting right now"
Shutdown at a specified time
If you want to exit at the specified time, for example 20:03, enter the command:
shutdown –h 20:3
Disable all options
To get a list of all the parameters that can be used with the shutdown command, along with their type command:
The shutdown command can do a lot with the following options.
Turn off all options
The poweroff command can also be used with other parameters. To get a list of all the parameters that can be used with the poweroff command, along with their command of the type:
So, you have learned that in Ubuntu there are many ways to turn off and turn off the computer. Basic power-off and power-off commands with various parameters can perform various functions to stop a session. Now you can use any of the above methods to turn off your computer.
How to shut down Ubuntu