HxHippy

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, --force

Force an immediate reboot, bypassing the normal shutdown procedure. Use with extreme caution as it can lead to data loss.

-p, --poweroff

Power off the system instead of rebooting (effectively acts like poweroff command).

--halt

Halt the system instead of rebooting (effectively acts like halt command).

-w, --wtmp-only

Don't actually reboot, but write a wtmp (login record) entry indicating a system reboot. For testing/logging.

--no-wall

Do not send a pre-reboot wall message to logged-in users.

--no-wtmp

Do not write a wtmp record.

Examples

$ sudo reboot

Reboots the system immediately (gracefully, equivalent to `sudo shutdown -r now`).

$ sudo reboot -f

Forces an immediate, potentially unclean reboot. Use with caution.

$ sudo reboot --poweroff

This command would power off the system instead of rebooting.

$ sudo reboot -w

Simulates a reboot for logging purposes by writing to wtmp, but does not actually reboot the system.

rebootrestartsystemadminshutdown