Linux reboot command
The Linux reboot command is used to restart the computer.
If the system runlevel is 0 or 6, it reboots directly; otherwise, the shutdown command (with the -r option) is used instead
Syntax
reboot [-n] [-w] [-d] [-f] [-i]
Parameters:
- -n : Do not write memory data back to disk before rebooting
- -w : Does not actually reboot; it only writes a record to the /var/log/wtmp file
- -d : Do not write a record to the /var/log/wtmp file (the -n option includes -d)
- -f : Force a reboot without calling the shutdown command
- -i : Stop all network-related devices before rebooting
Example
Restart
# reboot
Linux Command Reference