Linux reboot command
Linux reboot command is used to restart the computer.
If the system is runlevel 0 or 6, then reboot, otherwise shutdown instruction (plus -r parameter) to replace
grammar
reboot [-n] [-w] [-d] [-f] [-i]
Parameters:
- -n: do not do the reboot before data is written back to the hard disk memory operation
- -w: not really re-boot, but the records are written to / var / log / wtmp archives
- -d: do not put records are written to / var / log / wtmp archives (-n This parameter contains the -d)
- -f: forced reboot, this command does not call shutdown
- -i: before the first reboot all network-related devices to stop
Examples
Restart
# reboot