TrumanWong

reboot

Restart the running Linux operating system

Supplementary instructions

reboot command is used to restart the running Linux operating system.

grammar

reboot (option)

Options

-d: Do not write data to the record file /var/tmp/wtmp when restarting. This parameter has the effect of the "-n" parameter;
-f: Forces a reboot and does not call the shutdown command function;
-i: Close all network interfaces before restarting;
-n: Do not check whether there are unfinished programs before restarting;
-w: Only for testing, it does not actually restart the system. It will only write the restart data to the wtmp record file in the /var/log directory.

Example

reboot //Restart.
reboot -w //Do a simulation of rebooting (only recording will not actually reboot).