一、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命令