shutdown
1. Role
the role of the shutdown command is to shut down the computer, and its use rights are super users.
2. Format
shutdown [-H][-I][-K][-M][-T]
3. Important Parameters
-T: Tell the INIT program how long it will shut down before changing to another runlevel.
- K: Not really shut down, just send a warning signal to each login.
-H: Power off after shutting down the machine.
-c:cancel Current process cancels the currently executing shutdown program. So this option certainly does not have a time parameter, but you can enter a message to interpret, and this information will be sent to each user.
-F: Forces fsck to restart the computer.
-time: Set the time before shutting down the machine.
-M: Changes the system to single-user mode.
-I: Displays system information when shutting down.
4. Command Description
shutdown
command to safely shut down the system. It is dangerous for some users to shut down the Linux system in a way that directly shuts off the power supply. Because Linux differs from Windows, its background runs
many processes, forcing a shutdown can cause data loss to the process, leave the system in an unstable state, or even damage the hardware device (hard disk) in some systems. Use before the system shuts down
shutdown command, the system administrator notifies all logged-on users that the system is about to close, and the login command is frozen, that is, the new user can no longer log on.
This article is from the "--" blog, please be sure to keep this source http://57388.blog.51cto.com/47388/1544626
linux-installation and Landing commands-shutdown