•        OS : openKylin-0.7.5-x86_64
  •        blog : 师万物

重启电脑

  • 三种重启方式存在不同之处,感兴趣的同学可以深入研究。
shutdown -r now

Last login: Fri Jan  6 20:57:00 2023 from 192.168.3.4
sww@sww:~$ shutdown -r now
Failed to set wall message, ignoring: Interactive authentication required.
Failed to reboot system via logind: Interactive authentication required.
Failed to open initctl fifo: 权限不够
Failed to talk to init daemon.
sww@sww:~$ sudo shutdown -r now
[sudo] sww 的密码:
Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(kylin) at 11:46:36.

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

Connecting to 192.168.3.30:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Sat Jan  7 11:46:07 2023 from 192.168.3.4
sww@sww:~$ 

reboot

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

Connection closed by foreign host.

Disconnected from remote host(kylin) at 11:48:28.

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

Connecting to 192.168.3.30:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Sat Jan  7 11:47:05 2023 from 192.168.3.4
sww@sww:~$ 

init 6

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

Connection closed by foreign host.

Disconnected from remote host(kylin) at 11:55:08.

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

Connecting to 192.168.3.30:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Sat Jan  7 11:54:31 2023 from 192.168.3.4
sww@sww:~$ 

学习资源


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