I believe you all know that the shutdown,linux in LOL in the shutdown and LOL in the shutdown can be very different. Shutdown not only can safely shut down the operating system, but also covers the timing and restart, timing can be a time period, can also be accurate a time, the exact time format is hh:mm, representing time and minutes; the time period is represented by a plus and a minute. Data synchronization is done automatically when the command is completed.
Shutdown:
Shutdown-h now or init 0 or Telinit 0
The first line is executed by the direct shutdown, where now is a special usage (equivalent to 0) and cannot be omitted .
Timer shutdown:
Shutdown-h Hours:minutes &
If you want to continue to execute the command, do not miss the &, if you want to cancel the timer shutdown:
Shutdown-c
If you do not run other commands, direct:
Shutdown-h hours:minutes
Restart:
Shutdown-r Now or reboot
Or
Init 6
Note: Now, like Shutdown-h now, the first row is not to be omitted.
Summarize:
shutdown [options] [TIME] [WARNING]
Options:
-K warns the user of the message but does not perform a shutdown
-R Restart the computer
-H shutdown and power off completely
-F Fast Shutdown and skip fsck at restart
- F (uppercase) when rebooting, you must do fsck
-N Fast shutdown without init
-C Cancel Timer shutdown
-t< seconds > Delay between warning and deletion
[Linux] like League of Legends shutdown