如何重启 ubuntu

使用systemctl命令重新启动Ubuntu,登录用户将收到系统即将关闭的通知,而系统的服务将开始停止处理。

sudo systemctl reboot

不通知登录的用户:

sudo systemctl --no-wall reboot

通知时发送自定义的消息:

sudo systemctl --message="System Maintenance Replace CPU board" reboot

使用shutdown命令重启Ubuntu

sudo shutdown -r

在5分钟后重启Ubuntu系统:

sudo shutdown -r +5

指定重启的时间:

sudo shutdown -r 11:15

马上重启系统:

sudo shutdown now

取消重启计划(例如,原计划11:15重启,现在取消):

sudo shutdown -c "Canceling scheduled reboot"
日期:2020-07-07 20:55:38 来源:oir作者:oir