How to use shutdown shutdown command

藏色散人
Release: 2023-01-29 15:02:02
Original
4452 people have browsed it

How to use the shutdown command: 1. Use the "# shutdown -h now" statement to implement immediate shutdown; 2. Use the "# shutdown -h 10" statement to implement shutdown after specifying 10 minutes; 3. Use "# shutdown -h 10" statement to implement shutdown after 10 minutes. # shutdown -r now" statement to restart the computer.

How to use shutdown shutdown command

The operating environment of this tutorial: linux5.9.8 system, DELL G3 computer

How to use the shutdown command?

Linux shutdown command

The Linux shutdown command can be used to perform the shutdown process and send messages to all programs being executed by the user before shutting down, shutdown It can also be used to reboot.

Usage permissions: System administrator.

Syntax

shutdown [-t seconds] [-rkhncfF] time [message]
Copy after login

Parameter description:

-t seconds: Set the shutdown procedure after a few seconds.

-k: It will not actually shut down the computer, but will only send a warning message to all users.

-r: Shut down and then restart.

-h : Stop after shutdown.

-n: Instead of using normal procedures to shut down, forcefully kill all running programs and then shut down automatically.

-c: Cancel the shutdown action currently in progress.

-f: When shutting down, do not perform fsck action (check Linux file system).

-F: Force fsck action when shutting down.

time: Set the shutdown time.

message: Warning message sent to all users.

Example

Shut down immediately

# shutdown -h now
Copy after login

Specify shutdown after 10 minutes

# shutdown -h 10
Copy after login

Restart the computer

# shutdown -r now
Copy after login

Recommended study: "Linux Video Tutorial"

The above is the detailed content of How to use shutdown shutdown command. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template