The correct shutdown process is:sysnc–> Shutdown/reboot/halt/poweroff
The SYSNC synchronizes the data from memory to the hard disk.
Shutdown shutdown instructions. For example, you can run the following command to shut down:
Shutdown–h ' This server would shutdown after ten mins ' This command tells you that the computer will shut down in 10 minutes and will be displayed in the current screen of the logged-on user.
Shutdown–h now immediately shuts down the machine
Shutdown–h 20:25 The system will shut down at 20:25 today.
Shutdown–h +10 10 minutes after shutdown
Shutdown–r now system restarts immediately
Shutdown–r +10 system restarts after 10 minutes
Reboot is a reboot, equivalent to Shutdown–r now
Halt shutdown system, equivalent to Shutdown–h now and Poweroff
The shutdown commands are:
Shutdown–h now
Poweroff
Halt
Init 0
The Restart commands are:
Shutdown–r now
Reboot
Init 6
Linux shutdown command