shell:重启&&关机
文章目录shutdownhaltpoweroffrebootinitsyncshutdown关机重启命令shutdown -h 10十分钟后关机shutdown -h 0马上关机shutdown -h now马上关机shutdown -c取消正在进行的shutdown指令shutdown -r 10十分钟后重启shutdown -r...
·
shutdown
关机重启命令
| shutdown -h 10 | 十分钟后关机 |
| shutdown -h 0 | 马上关机 |
| shutdown -h now | 马上关机 |
| shutdown -c | 取消正在进行的shutdown指令 |
| shutdown -r 10 | 十分钟后重启 |
| shutdown -r 0 | 马上重启 |
| shutdown -r now | 马上重启 |
halt
关机
| halt -n | 在关机或重启之前不对系统缓存进行同步 |
| halt -w | 不真正重启或关机,而仅仅将关机信息写入wtmp(在/var/log/wtmp文件里) |
| halt -d | 不记录此次关机情况。当使用 -n 参数时隐含 -d |
| halt -f | 强制执行 halt 或 reboot 而不去调用 shutdown |
| halt -i | 在关闭或重启系统之前关闭所有网络界面 |
| halt -p | 当关闭系统时执行关闭电源操作。当以poweroff方式调用halt时,此为缺省参数 |
poweroff
关机
reboot
重启
init
| init 0 | 关机 |
| init 6 | 重启 |
sync
把数据从buffer写回磁盘
更多推荐




所有评论(0)