Linux reboot command is used to restart the computer.
If the runlevel of the system is 0 or 6, reboot, otherwise use shutdown command (plus -r parameter) to replace
Syntax
reboot [-n] [-w] [-d] [-f] [-i]
Parameters:
-n: Do not write the memory data back to the hard disk before rebooting.
-w: It does not actually reboot, but just writes the records to /var/ log/wtmp file
-d: Do not write records to the /var/log/wtmp file (-n parameter includes -d)
-f: Force restart without calling the shutdown command
- i: Stop all network-related devices before rebooting
Instance
Restart
# reboot