Home > Article > System Tutorial > What types of reboot commands are there in Linux?
Linux system provides a variety of restart commands: normal restart: reboot, sudo init 6 forced restart: sudo systemctl reboot --force specified run level restart: shutdown -r N, sudo init N planned restart: shutdown -r now, shutdown -r N system recovery: poweroff, sudo systemctl poweroff
Linux Restart command type
Linux system Has various types of restart commands for restarting the system when needed. These commands vary based on their behavior and goals.
1. Normal restart
reboot
: Perform a normal system restart, close all processes and reload the operating system. sudo init 6
: Same as reboot
, but uses the init command. 2. Force reboot
force reboot
: Force reboot the system, which will not shut down the process and may cause data corruption lost. sudo systemctl reboot --force
: Use the systemd service manager to force a reboot. 3. Reboot to the specified run level
shutdown -r N
: Reboot to the specified run level, where N is the target runlevel. For example, shutdown -r 0
will reboot to shutdown state. sudo init N
: Use the init command to restart to the specified run level. 4. Plan to restart
shutdown -r now
: Restart the system immediately. shutdown -r N
: Restart the system after N minutes. 5. System recovery
poweroff
: Turn off the system power and will not restart. sudo systemctl poweroff
: Use the systemd service manager to power off. Usage Notes:
command.
The above is the detailed content of What types of reboot commands are there in Linux?. For more information, please follow other related articles on the PHP Chinese website!