shutdown: shutdown -h now:立即关机shutdown -h 1:表示1分钟后关机shutdown -r now: 表示立即重启halt 效果等价与关机reboot 重启系统sync: 把内容数据同步到磁盘 注意: 当关机和重启时,都应该先执行sync命令,把内存的数据写入磁盘,防止数据丢失 转载于:https://www.cnblogs.com/drl-blogs/p/10797940.html