0
点赞
收藏
分享

微信扫一扫

Linux中设置关机命令

Mezereon 2022-03-11 阅读 69
linux

关机
    shutdown:用于对系统执行关机操作
    shutdown -t 推迟多少秒关机
                      -f 重新启动不执行fsck命令
                      -h 将系统关机
                      -r 关机后重新启动
    reboot:重启
    init:init0 关机 
             init6 重启
    halt:关机      
    
    命令格式
    [root@localhost ~]# shutdown [选项]时间[警告信息]
    选项:
        -c 取消已经执行的shut down命令
        -h 关机
        -r 重启

   如:设置推迟30秒关机

 [root@localhost ~]# shutdown  -t +30

 

举报

相关推荐

0 条评论