openkylin基础 关闭计算机

时间:2023-01-07 20:00:33
  •        OS : openKylin-0.7.5-x86_64
  •        blog : 师万物

关闭计算机

shutdown -h now

Last login: Sat Jan  7 11:54:31 2023 from 192.168.3.4
sww@sww:~$ shutdown -h now
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to open initctl fifo: 权限不够
Failed to talk to init daemon.
sww@sww:~$ sudo shutdown -h now
[sudo] sww 的密码:
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(kylin) at 12:20:15.

Type `help' to learn how to use Xshell prompt.

halt

Last login: Sat Jan  7 11:57:20 2023 from 192.168.3.4
sww@sww:~$ halt 
Failed to set wall message, ignoring: Interactive authentication required.
Failed to halt system via logind: Interactive authentication required.
Failed to open initctl fifo: 权限不够
Failed to talk to init daemon.
sww@sww:~$ sudo halt
[sudo] sww 的密码:
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(kylin) at 12:22:40.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

poweroff

Last login: Sat Jan  7 12:22:28 2023 from 192.168.3.4
sww@sww:~$ poweroff
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to open initctl fifo: 权限不够
Failed to talk to init daemon.
sww@sww:~$ sudo poweroff
[sudo] sww 的密码:
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(kylin) at 12:27:29.

Type `help' to learn how to use Xshell prompt.

init 0

Last login: Sat Jan  7 12:27:03 2023 from 192.168.3.4
sww@sww:~$ init 0
Failed to set wall message, ignoring: Interactive authentication required.
Failed to power off system via logind: Interactive authentication required.
Failed to open initctl fifo: 权限不够
Failed to talk to init daemon.
sww@sww:~$ sudo init 0
[sudo] sww 的密码:
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(kylin) at 12:29:03.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

学习资源


感恩曾经帮助过 师万物 的同学们。