加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

Linux—系统关机命令详解

发布时间:2020-12-14 00:23:10 所属栏目:Linux 来源:网络整理
导读:一、shutdown命令 立刻关机,now相当于时间为0[[email?protected] ~]# shutdown - h now 系统在今天的20:25分关机,若在21:25才执行此命令,则隔天才关机[[email?protected] ~]# shutdown -h 20 : 25 系统在十分钟后关机[[email?protected] ~]# shutdown –

一、shutdown命令

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

系统立刻重启 [[email?protected]
~]# shutdown –r now 系统十分钟后重启 [[email?protected] ~]# shutdown –r +10 [[email?protected] ~]# shutdown –r 30 the system will reboot after 30 mins

二、reboot命令

系统立刻重启,等同于 shutdown –r now
[[email?protected] ~]# reboot

三、halt命令

立刻关闭系统,等同于 shutdown –h now 和 poweroff
[[email?protected] ~]# halt

四、

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读