We can use shutdown, halt, poweroff and other commands to shut down. You can use the command man shutdown to view its help documentation.
For example, we can run the following command to shut down:
shutdown -h 10 #计算机将于10分钟后关闭,且会显示在登录用户的当前屏幕中 shutdown -h now #计算机会立刻关机 shutdown -h 22:22 #计算机会在这个时刻关机 shutdown -r now #计算机会立刻重启 shutdown -r +10 #计算机会将于10分钟后重启 reboot #重启 halt #关机
Recommended tutorial: centos tutorial
The above is the detailed content of How to shut down centos7. For more information, please follow other related articles on the PHP Chinese website!