Commonly used shutdown and restart commands in Linux systems

Commonly used shutdown and restart commands

Shutdown command

poweroff

half

init 0

shutdown -h now
#在指定时间点22:30,定时关机
shutdown -h 22:30
#取消正在运行的关机命令
shutdown -c

Insert picture description here

Restart command

reboot

init 6

shutdown -r now

Guess you like

Origin blog.csdn.net/qq_39599464/article/details/114525491