linux shutdown process

Synchronize the data in memory to the hard disk

sync

grammar

shutdown [OPTIONS...] [TIME] [WALL...]
【options】
 -r, reboot
 Reboot the machine.(重新启动设备)
 -h
 Equivalent to poweroff(定时关机)
【time】
 +m  表示从现在开始的制定分钟数
 时间字符串可以是“hh:mm”格式的小时/分钟,指定在24小时内执行关机的时间格式

Examples

shutdown -h now  立马关机
shutdown -h 23:15 系统会在今天的23:15关机
shutdown -h +10  系统会在10分钟后关机
shutdown -c     取消即将进行的关机
shutdown -r now 马上重启 等同于reboot
shutdown -r +10 系统会在10分钟后重启

Guess you like

Origin www.cnblogs.com/longlogs/p/11879367.html