Linux关机重启命令
2017-06-05 13:52
162 查看
shutdown 关机指令,你可以man shutdown 来看一下帮助文档。例如你可以运行如下命令关机:
shutdown –h 10 ‘This server will shutdown after 10 mins’ 这个命令告诉大家,计算机将在10分钟后关机,并且会显示在登陆用户的当前屏幕中。
Shutdown –h now 立马关机
Shutdown –h 20:25 系统会在今天20:25关机
Shutdown –h +10 十分钟后关机
Shutdown –r now 系统立马重启
Shutdown –r +10 系统十分钟后重启
reboot 就是重启,等同于 shutdown –r now
halt 关闭系统,等同于shutdown –h now 和 poweroff
最后总结一下,不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。
关机的命令有 shutdown –h now halt poweroff 和 init 0 , 重启系统的命令有 shutdown –r now reboot init 6。
shutdown –h 10 ‘This server will shutdown after 10 mins’ 这个命令告诉大家,计算机将在10分钟后关机,并且会显示在登陆用户的当前屏幕中。
Shutdown –h now 立马关机
Shutdown –h 20:25 系统会在今天20:25关机
Shutdown –h +10 十分钟后关机
Shutdown –r now 系统立马重启
Shutdown –r +10 系统十分钟后重启
reboot 就是重启,等同于 shutdown –r now
halt 关闭系统,等同于shutdown –h now 和 poweroff
最后总结一下,不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。
关机的命令有 shutdown –h now halt poweroff 和 init 0 , 重启系统的命令有 shutdown –r now reboot init 6。
微信搜索公众号:javafirst
相关文章推荐
- Linux 指令篇:常用的关机与重启命令
- Linux基本命令-注销、关机、重启
- linux关机和重启命令
- Red hat Linux 重启、关机、退出X、启动X 命令
- Linux下的重启、关机命令
- Linux的关机与重启命令
- linux常用的关机和重启命令
- Linux的关机与重启命令
- Linux关机与重启命令详解
- Linux的关机与重启命令
- Linux的关机与重启命令
- Linux 关机/重启命令
- Linux基本命令注销、关机、重启
- linux关机和重启的命令
- linux关机和重启命令
- 每天一个知识点linux(二)关机重启命令
- linux 关机/重启命令
- linux关机和重启的命令
- linux下常用的关机/重启命令shutdown、halt、reboot、init
- Linux关机和重启的命令