Linux shutdown restart command

 

shutdown command
shutdown command
syntax: shutdown [options] time
-c cancel the previous shutdown command
-h shutdown
-r restart

eg:shutdown -h now Shutdown now
   shutdown -h 20:30 Shutdown at 8:30 pm
Other shutdown commands
halt
pwoeroff Use less (like cutting off the power)
init 0
  
reboot command
Restart command

If it is a remote server to execute this command, be careful, because some servers need to press F1 to enter the system after restarting. Gao Shengyun 20160702

 

Other reboot commands
init 6


System run level /etc/inittab configuration file can be found in
0 shutdown
1 single user
2 incomplete multi-user, excluding NFS service
3 full multi-user
4 unassigned
5 graphical interface
6 restart


runlevel command to
view the current run level

 

logout command
to log out of the login command For security reasons, be sure to log out after completing the operation.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326592936&siteId=291194637