Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Shut down the system.

Shut down the system.

●top the system with the halt command

There are several ways to stop the system, but executing the halt command will send a system stop message to all connected users, shift the run level to “0”, and start the stop process.
Normally, you need to be the root user to execute this command, but the halt command can also be executed by a general user. However, when run as a general user, the behavior differs depending on the distribution as follows.

RedHat system:Can be executed by general users. However, if the command is executed from a remote host, it will be ignored.
Vine Linux system:Ask for the root user’s password, and if correct, run the stop process.
Debian GNU/Linux system:Cannot be executed by general users
Plamo Linux system:Cannot be executed by general users

[root@Lion ~]# halt

Broadcast message from root (pts/0) (Thu Aug 10 17:05:51 2020):

The system is going down for system halt NOW!

●Terminate the system immediately.

The shutdown and halt commands can be used to immediately terminate the system by running them with their respective options.

shutdown commands
shutdown Add the option “-h” to the command and specify “now” as the argument
[root@Lion ~]# shutdown -h now

halt commands 

halt Run the command with the option “-p”.
[root@Lion ~]# halt -p

●Terminate the system at the specified time.

You can also specify a time to shutdown the system at that time.
To shutdown the system by specifying the time, add the “-h” option to the shutdown command and specify the time in 24-hour format, hh:mm (hour:minute), as an argument.
To execute the shutdown command, root privileges are required.

Ends at 11:30 p.m.

[root@Lion ~]# shutdown -h 23:30

●Abort system termination

You can abort the termination of the system before the halt process starts.
To abort, if you are in a console, type “Enter” to display the prompt and then execute the shutdown command with the “-c” option, or type “Cntl” + “c” keys.

[root@Lion ~]# shutdown -h +3 ←Execute the system shutdown process in 3 minutes.
Broadcast message from root (pts/0) (Sat Aug 12 20:49:38 2020):
The system is going DOWN for system halt in 3 minutes!
Shutdown cancelled.  or

[root@Lion ~]# shutdown -c