Linux关机、重启、退出

序号 命令 说明
1 shutdown -h now 立即关机
2 shutdown -h +10 "请各位退出"     十分钟后关机,同时广播通告“请各位退出”
3 shutdown -r 16:30 重启
4 shutdown -h 23:59 关机
5 reboot 重启
6 halt 粗暴的关机(poweroff)
7 exit / logout 退出登录,注销
8 sync 把磁盘I/O告诉缓存中的内容同步到磁盘
9 systemctl hibernate 进入睡眠
10 systemctl rescue 系统进入急救模式

poweroff

halt,调用shutdown,关闭系统,但不会关闭电源

reboot,非-f是调用shutdown

foweroff,相当于shutdown -h now

init

原文地址:https://www.cnblogs.com/daduryi/p/6623211.html