Getting 4- linux shutdown / restart related command

Excerpts link: https: //blog.csdn.net/wenfei11471/article/details/79319795

https://www.runoob.com/linux/linux-system-boot.html

 

 

1 "in the field mostly used on linux server, rarely encountered in the operation shut down. After all, running a service on the server is never-ending, except under special circumstances, it will be forced to shut down.

Under 2 "Linux system shutdown command issued only to the root user terminal (Linux users can use in switching su root password will enter the root user), while the other end will be received.

 

Proper shutdown procedure is: sync> shutdown> reboot> halt

Shutdown command is: shutdown, you can look at the man shutdown help documentation.

For example, you can run the following command shutdown:

sync data from the synchronous memory to the hard disk. 

shutdown shutdown command, you can man shutdown look at the help files. For example, you can run the following command shutdown: the shutdown - H 10 ' This Server by Will the After the shutdown 10 mins ' This tells you that the computer will be 10 minutes after the shutdown, and will appear in the user's current login screen. shutdown - H now immediately shutdown shutdown - H 20 : 25 will be today 20 : 25 shutdown shutdown - H + 10 off ten minutes after the shutdown - r now the system immediately restart shutdown    - R & lt + 10 after ten minutes restart system reboot is restarted, equivalent to the shutdown - R & lt HALT now closed system, is equivalent to the shutdown - H now and the poweroff . 3 " input ctrl + c but cancel command is not transmitted to another terminal on the root terminal the cancel shutdown instructions may also be accomplished using the shutdown + c, but note that this command can only be done in another onto the root user terminal, the terminal issue a shutdown instruction to use shutdown + c useless. reboot, halt, poweroff not safe shutdown / reboot command, because these three commands in the closed system is to remove all the processes, rather than steady terminate them, may cause data if there is work to other users on the system lost, in general, it is recommended to use the shutdown command to shut down / restart system 





Guess you like

Origin www.cnblogs.com/Spring-Rain/p/12571632.html