Linux关机重启指令 一、基本语法1.sync(同步内存数据到硬盘中)2.shutdown[-h|-r] 时间-h:关机-r:重启3.halt(关机:shutdown -h now)4.reboot(重启:shutdown -r now) 二、案例1.$>sync【将数据同步到硬盘中】2.$>shutdown -h 10 ‘shutdown after 10 minutes mumu’ 【注意】:不管是重启系统还是关闭系统,都要先执行sync,保存数据