Reboot command:
1, reboot
2. shutdown-r now reboot (root user)
3, Shutdown-r 10 over 10 minutes automatic restart (root user use)
4, Shutdown-r 20:35 reboot at 20:35 time (root user)
If you set the reboot through the shutdown command, you can cancel the reboot with the SHUTDOWN-C command
Shutdown reference
Shutdown parameter Description:
[-t] before changing to other runlevel? Tell Init how long to shut down.
[-R] to restart the calculator.
[K] does not really shut down? Just send a warning signal to each person who (login) the login.
[-h] turn off the power (halt) after shutting down the computer.
[-n] do not use init? Instead, you shut down the machine. Do not encourage the use of this option? and the consequences of this option are often not always what you expect.
[-c] Cancel current process cancels the currently executing shutdown program. So, of course, there is no time parameter for this option, but can you enter a message to explain? And this information will be sent to each user.
[-f] ignores fsck while restarting Calculator (reboot).
[-f] Forces fsck when the calculator (reboot) is restarted.
[-time] To set the time before the shutdown (shutdown)
Shutdown command:
1, halt immediately shut down the machine
2, Poweroff immediately shut down the machine
3, Shutdown-h now shut down immediately (root user use)
4, shutdown-h 10 10 minutes after automatic shutdown
If you are setting the shutdown via the shutdown command, you can cancel the reboot with the SHUTDOWN-C command
Parameter description:
[-n] Prevent sync system calls? It is used after patching the root partition with fsck to prevent the kernel from overwriting the patched super blocks with the old version of the Super Block (superblock).
[-W] is not a real reboot or shutdown? Just write Wtmp(/var/log/wtmp) records.
[-d] does not write Wtmp records (already included in options [-n]).
[-f] forced shutdown or reboot without invoking shutdown.
[i] turn off all network interfaces before shutting down (or rebooting).
[-p] This option is the default option. is to call Poweroff on shutdown.