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
2020.09.25
LinuxTips(RedHat)_ensystems-management