Home > Article > System Tutorial > What is the command to restart linux?
The Linux reboot command is reboot, which restarts the system by sending a signal to the kernel. Its usage is to enter sudo reboot in the terminal. It supports -f instant restart, -p shutdown restart, -n simulated restart and other parameters. Other related commands include shutdown (safe shutdown), poweroff (immediate shutdown), and halt (halt).
Linux restart command
The command to restart the Linux system is reboot
. It sends a signal to the kernel instructing it to safely restart the system.
Usage
To restart the Linux system, enter the following command in the terminal:
<code>sudo reboot</code>
Parameters
# The##reboot command supports the following parameters:
: Reboot immediately without any confirmation.
: Shut down and then restart.
: Do not perform actual restart, only simulate the restart process.
Usage example
<code>sudo reboot -f</code>
<code>sudo reboot -p</code>
<code>sudo reboot -n</code>
Other related commands
In addition to thereboot command, there are other Linux commands related to rebooting:
: Safely shut down the system and Restart or shut down.
: Shut down immediately.
: Stop the system from running.
The above is the detailed content of What is the command to restart linux?. For more information, please follow other related articles on the PHP Chinese website!