reboot
Reboot the system
Overview
Halts, powers off, or reboots the machine. Typically a symbolic link to the shutdown command with appropriate options.
Syntax
reboot [OPTION]...Common Options
-f, --forceForce an immediate reboot, bypassing the normal shutdown procedure. Use with extreme caution as it can lead to data loss.
-p, --poweroffPower off the system instead of rebooting (effectively acts like poweroff command).
--haltHalt the system instead of rebooting (effectively acts like halt command).
-w, --wtmp-onlyDon't actually reboot, but write a wtmp (login record) entry indicating a system reboot. For testing/logging.
--no-wallDo not send a pre-reboot wall message to logged-in users.
--no-wtmpDo not write a wtmp record.
Examples
Reboots the system immediately (gracefully, equivalent to `sudo shutdown -r now`).
Forces an immediate, potentially unclean reboot. Use with caution.
This command would power off the system instead of rebooting.
Simulates a reboot for logging purposes by writing to wtmp, but does not actually reboot the system.