1.shutdown 关机重启(建议使用)
-r reboot #重启,eg:shutdown -r now立刻关机
-h halt #关机,eg:shutdown -h now
2.halt #关机cpu停止工作
3.poweroff #关机断电
4.init 切换运行级别
init 0 #关机
inti 6 #重启
5.reboot #重启(常用重启命令)
6.systemctl CentOS7以后的服务管理命令
systemctl reboot #重启系统
systemctl poweroff #关闭系统并切断电源
systemctl halt #关闭系统CPU停止工作
systemctl suspend #暂停系统
systemctl hibernate #让系统进入冬眠状态
systemctl hybrid-sleep #让系统进入交互式休眠状态
systemctl rescue #启动进入救援状态(单用户状态)
7.sync #把数据从buffer写回磁盘
8.logout #注销退出当前用户窗口
9.exit #注销退出当前用户窗口,快捷键Ctrl+d
孩儿立志出乡关,学不成名誓不还。埋骨何须桑梓地,人生无处不青山。

评论