Linux关机&重启命令

⒈shutdown

  ①shutdown -h now  立即关机

  ②shutdown -h 1  1分钟后关机

  ③shutdown -r now  立即重启

⒉halt  立即关机

⒊reboot  立即重启

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

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

猜你喜欢

转载自www.cnblogs.com/fanqisoft/p/10449492.html
今日推荐