linux关机和重启命令

linux重启和关机命令

(root用户执行)

重启命令:

1、reboot

2、shutdown -r now 立即重启

3、shutdown -r 5  5分钟后自动重启(时间可以自己设置)

4、shutdown -r 10:30 在时间为10:30时候重启(时间可以自己设置)

关机命令:

1、init 0

2、halt   

3、poweroff  

4、shutdown -h now 立刻关机

5、shutdown -h 5  5分钟后自动关机(时间可以自己设置)

原文地址:https://www.cnblogs.com/liruxian/p/8358205.html