1 init
Shutdown: init 0
Restart: init 6
2 reboot
Reboot:reboot
3 shutdown
Command Introduction
This command can safely shut down or restart the system.
Command syntax
shutdown [-fFhknrc] [-t seconds] time [warning message]
Command parameters
Command example
Shut down and restart: shutdown -r now
Shut down immediately: shutdown -h now
Shut down after 5 minutes, and send a warning message to the user: shutdown +5 "System will shutdown after 5 minutes"
4 halt
Command introduction
When this command is executed, all applications will be terminated, and then Call the system command sync, sync writes all memory information to the hard disk through the file system, and then stops the kernel.
Command syntax
halt [-finp]
Command parameters
For more Linux system shutdown and restart command summary related articles, please pay attention to PHP Chinese website!