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.
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]
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
Specify shutdown after 10 minutes
# shutdown -h 10
Restart the computer
# shutdown -r now
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!

This tutorial demonstrates efficient keyword searching in Linux using the grep command family and related tools. It covers basic and advanced techniques, including regular expressions, recursive searches, and combining commands like awk, sed, and xa

This article details the multifaceted role of a Linux system administrator, encompassing system maintenance, troubleshooting, security, and collaboration. It highlights essential technical and soft skills, salary expectations, and diverse career pr

This article compares SELinux and AppArmor, Linux kernel security modules providing mandatory access control. It details their configuration, highlighting the differences in approach (policy-based vs. profile-based) and potential performance impacts

This article details Linux system backup and restoration methods. It compares full system image backups with incremental backups, discusses optimal backup strategies (regularity, multiple locations, versioning, testing, security, rotation), and da

The article explains how to use regular expressions (regex) in Linux for pattern matching, file searching, and text manipulation, detailing syntax, commands, and tools like grep, sed, and awk.

The article discusses using top, htop, and vmstat for monitoring Linux system performance, detailing their unique features and customization options for effective system management.

The article provides a guide on setting up two-factor authentication (2FA) for SSH on Linux using Google Authenticator, detailing installation, configuration, and troubleshooting steps. It highlights the security benefits of 2FA, such as enhanced sec

This article compares Linux commands (scp, sftp, rsync, ftp) for uploading files. It emphasizes security (favoring SSH-based methods) and efficiency, highlighting rsync's delta transfer capabilities for large files. The choice depends on file size,


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
