Linux关机&重启命令

⒈shutdown

  ①shutdown -h now  立即关机

  ②shutdown -h 1  1分钟后关机

  ③shutdown -r now  立即重启

⒉halt  立即关机

⒊reboot  立即重启

⒋sync  把内存的数据同步到磁盘上

★无论是重启还是关闭系统,都应首先执行sync命令,把内存中的数据写到磁盘中。

posted @ 2019-02-28 11:58  SpringCore  阅读(328)  评论(0编辑  收藏  举报