linux电脑关机后自动重启,Linux系统关机/重启

linux下常用的关机命令有:shutdown、halt、poweroff、init;重启命令有:reboot。

重启

1、reboot

2、shutdown -r now 立刻重启(root用户使用)

3、shutdown -r 10 过10分钟自动重启(root用户使用)

4、shutdown -r 20:35 在时间为20:35时候重启(root用户使用)

[NSOS1.1 ~]# shutdown -r now

Broadcastmessage from root (pts/0) (Thu Oct 29 15:47:57 2015):

Thesystem is going down for reboot NOW!

[NSOS 1.1~]#

[NSOS1.1 ~]# shutdown -r 10

Broadcastmessage from root (pts/0) (Thu Oct 29 15:51:50 2015):

Thesystem is going DOWN for reboot in 10 minutes!

Broadcastmessage from root (pts/0) (Thu Oct 29 15:52:50 2015):

Thesystem is going DOWN for reboot in 9 minutes!

Broadcastmessage from root (pts/0) (Thu Oct 29 15:53:50 2015):

Thesystem is going DOWN for reboot in 8 minutes!

………..

关机

shutdown

该命令安全地将系统关机。有些用户会使用直接断掉电源的方式来关闭linux,这是十分危险的。因

你可能感兴趣的:(linux电脑关机后自动重启)