reboot

>Usage

The reboot command restarts the computer safely. Administrative privileges are often required for reboot commands, so prepend sudo to the command, e.g., sudo reboot.

>Synopsis

reboot [option]

>Options

reboot

Reboots the system immediately.

Example:

Dots

-zsh

reboot


The system is going down for a reboot NOW!

reboot -f

Forces an immediate reboot, bypassing safe shutdown processes. This option works on both Linux and Unix-based systems.

Example:

Dots

-zsh

reboot -f


The system is going down for a forced reboot NOW!

reboot -l

Logs the reboot event. Available on most Unix-like operating systems, including Linux.

Example:

Dots

-zsh

reboot -l


Reboot event logged successfully.

reboot -q

Quickly reboots the system without shutting down services cleanly. This option is Linux-specific.

Example:

Dots

-zsh

reboot -q


The system is rebooting immediately without clean shutdown.

>Quiz

1. What does `reboot -f` do?

2. Which command logs the reboot event?

3. Which command reboots the system quickly without cleaning up services?

Page written by Amos Disha