1.基本介绍
shutdown
shutdown -h now : 表示立即关机
shutdown -h 1 : 表示1分钟后关机
shutdown -r now :表示立即重启
halt 直接使用,效果等价于关机
reboot 重启系统
sync 把内存的数据同步到磁盘
2.注意
当我们重启或者关机时,都应该执行sync
1.基本介绍
shutdown
shutdown -h now : 表示立即关机
shutdown -h 1 : 表示1分钟后关机
shutdown -r now :表示立即重启
halt 直接使用,效果等价于关机
reboot 重启系统
sync 把内存的数据同步到磁盘
2.注意
当我们重启或者关机时,都应该执行sync