Linux—系统关机命令详解

我的未来我决定 提交于 2019-11-30 10:19:34

一、shutdown命令

立刻关机,now相当于时间为0
[root@localhost ~]# shutdown -h now   
系统在今天的20:25分关机,若在21:25才执行此命令,则隔天才关机
[root@localhost ~]# shutdown -h 20:25
系统在十分钟后关机
[root@localhost ~]# shutdown –h +10 
这个命令告诉大家,这台机器将在10分钟后关机,并且会显示在登陆用户的当前屏幕中。
[root@localhost ~]# shutdown –h 10 'This server will shutdown after 10 mins' 
系统立刻重启
[root@localhost ~]# shutdown –r now 
系统十分钟后重启
[root@localhost ~]# shutdown –r +10 
[root@localhost ~]# shutdown –r 30  ' the system will reboot after 30 mins'

二、reboot命令

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!