一:关机命令
不管是重启系统还是关闭系统,首先要运行sync命令,把内存中的数据写到磁盘中
man shutdown --查看帮助文档
halt 关闭系统
shutdown -h now 关闭系统
poweroff 关闭系统
reboot 重启系统
shutdown -r now 重启系统
一:关机命令
不管是重启系统还是关闭系统,首先要运行sync命令,把内存中的数据写到磁盘中
man shutdown --查看帮助文档
halt 关闭系统
shutdown -h now 关闭系统
poweroff 关闭系统
reboot 重启系统
shutdown -r now 重启系统