Home > php教程 > PHP开发 > Summary of Linux system shutdown and restart commands

Summary of Linux system shutdown and restart commands

高洛峰
Release: 2016-12-17 17:14:38
Original
1384 people have browsed it

1 init

Shutdown: init 0

Restart: init 6

2 reboot

Reboot:reboot

3 shutdown

Command Introduction

This command can safely shut down or restart the system.

Command syntax

shutdown [-fFhknrc] [-t seconds] time [warning message]

Command parameters

Summary of Linux system shutdown and restart commands

Command example

Shut down and restart: shutdown -r now

Shut down immediately: shutdown -h now

Shut down after 5 minutes, and send a warning message to the user: shutdown +5 "System will shutdown after 5 minutes"

4 halt

Command introduction

When this command is executed, all applications will be terminated, and then Call the system command sync, sync writes all memory information to the hard disk through the file system, and then stops the kernel.

Command syntax

halt [-finp]

Command parameters

Summary of Linux system shutdown and restart commands


For more Linux system shutdown and restart command summary related articles, please pay attention to 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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template