


Detailed explanation and examples of Linux Centos7 shutdown command!
Centos means community enterprise operating system in Chinese. It is one of the Linux distributions. It is a free, open source, and redistributable open source operating system. It is also highly used. One of the systems. So what is the Linux
Centos7 shutdown command? The following is an introduction to the specific content.
The Centos7 shutdown command is shutdown.
The shutdown command can be used to shut down the system and send a message to all users before shutting down. It can also be used to restart the system.
grammar
The syntax of this command is as follows:
shutdown [-t seconds][-rkhncfF]time[message]
The options supported by this command are:
-t seconds How many seconds to delay between sending a warning message and deleting the message
-k does not actually shut down the computer, it just sends a warning message to all users
-r Restart, equivalent to reboot
-h Stop after shutdown
-n does not use normal procedures to shut down, but uses a forced method to kill all running programs and then shut down itself
-c Cancel shutdown
-f does not execute fsck when restarting, centos system does not have it but Ubuntu system has it
-F executes fsck when restarting, the centos system does not have it but the Ubuntu system has it
The parameters supported by this command are:
time
Set the shutdown time. If it is now, it means shutting down immediately; if it is number, it means shutting down the system after the specified minute; if it is hour:minute, it means shutting down the system at the specified time of the day
message A warning message sent to all users. If this parameter is specified, the time parameter must be specified
use
Shut down immediately
If you want to shut down immediately, you can execute the following command:
shutdown -h now
Where now is equivalent to the state of time 0
Restart now
If you want to restart immediately, you can execute the following command:
shutdown -r now
Setting the specified time to shut down
If you want to set the current server to automatically shut down at a specified time, you can set the time. The time format is: hours: minutes. The command format is as follows:
#grammar
shutdown -h hours:minutes
#Example, automatic shutdown at 10:30 pm
shutdown -h 22:30
The above is the detailed content of Detailed explanation and examples of Linux Centos7 shutdown command!. For more information, please follow other related articles on the PHP Chinese website!

What’s the difference between Linux and Mac? Do you want to install Linux on Mac? This post from php.cn will show you all. You can refer to this guide to dual boot Linux and macOS.

What is MHTML? How to open or view it? What are the differences between it and HTML? How to convert MHTML to HTML? If you are looking for the answers to the above questions, you can refer to this post from php.cn.

This article focuses on the topic that deleted files keep reappearing in Windows 10, introducing the responsible reasons and feasible solutions.

This post teaches you how to deactivate Windows 10/11 by removing product key or license. You can use that product key to activate another computer later if you want. For more computer tips and tricks, you can visit php.cn Software official website.

Some Windows users report that they are prompted by the error 0164 memory size decreased screen every time they boot the computer. What’s wrong with it? If you are in the same boat, congratulations! You’ve come to the right place! In this post from p

This Page Isn’t Available Right Now is an error message you may encounter when you visit Facebook using your web browser. In this php.cn post, we will list some effective methods you can try to get rid of this error.

Windows 11 KB5010414, a new optional update for Windows 11, is available now. Do you know what’s new and fixes in it? php.cn Software will show you this information in this post. Besides, it also tells you how to download and install it on your compu

Want to pause Windows Update on your Windows 11 computer? Want to set active hours to arrange a computer restart to complete the update process? You need to know how to change Windows Update settings in Windows 11. This php.cn post will show you the


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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1
Powerful PHP integrated development environment

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

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