Home  >  Article  >  System Tutorial  >  What are the linux restart instructions?

What are the linux restart instructions?

下次还敢
下次还敢Original
2024-04-12 12:48:15558browse

In Linux systems, the commands that can be used to restart the system are: reboot (most commonly used) systemctl rebootinit 6 sudo shutdown -r now (restart immediately) sudo shutdown -r 0 (restart after one minute) sudo shutdown -r minutes (restart after specified number of minutes)

What are the linux restart instructions?

Linux restart command

In the Linux operating system, there are multiple The command can be used to reboot the system. The specific instructions are as follows:

1. reboot

This is the most commonly used reboot instruction. It will send a restart signal and the operating system will immediately start the shutdown and restart process.

2. systemctl reboot

This is an alternative command to the Systemd administrator systemctl. It has the same functionality as the reboot command.

3. init 6

This is the traditional command used to restart Linux systems. It sends a restart signal to the init process.

4. sudo shutdown -r now

This command will immediately shut down the system and restart it.

5. sudo shutdown -r 0

This command will shut down the system and restart it after one minute.

6. sudo shutdown -r minutes

This command will shut down the system and restart it after the specified number of minutes. For example, sudo shutdown -r 10 will reboot the system after 10 minutes.

Instructions:

To restart your Linux system, just type one of these commands into the terminal and press Enter.

It is important to note that before typing any of these instructions, make sure you have saved all work in progress and closed all open applications.

The above is the detailed content of What are the linux restart instructions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn