Home> System Tutorial> LINUX> body text

What are the restart commands for linux?

下次还敢
Release: 2024-04-12 11:36:13
Original
871 people have browsed it

Linux system restart commands include: reboot (restart immediately), shutdown (restart at a specified time), init 6 (restart through the system initialization controller) and systemctl reboot (use the systemd service to control the restart).

What are the restart commands for linux?

Linux Restart Command

The Linux operating system provides a variety of commands that can be used to restart the system. The following are commonly used ones:

reboot

reboot command is the most commonly used command to restart a Linux system. It will immediately shut down the system and restart it. The

shutdown

shutdowncommand allows you to specify the time for the reboot. It accepts the following parameters:

  • -r: Restart the system
  • -tfollowed by time (in seconds): Specify Restart the system after the specified time

init

##initcommand is the controller of the system initialization process. The system can be restarted by runninginit 6. The

systemctl

systemctlcommand can be used to control system services. It accepts the following parameters:

  • reboot: Reboot the system

Example

To restart the system immediately , please run the following command:

reboot
Copy after login
To specify a system restart after 5 minutes, run the following command:

shutdown -r +5
Copy after login
To use

systemctlto restart the system, run the following command :

systemctl reboot
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!