This article describes how to shut down windows at a specific time and linux at a specific time (shutdown command). If you need it, refer
Windows:
For various reasons, we may need the timed shutdown function. The common practice in windows may be to use some tools or common software (such as cool music box. However, if the software you do not have this function and you do not want to add software to implement this function, you can use a simple command.
The shutdown command can implement the timed shutdown function. the specific parameters are as follows:
-S shutdown
-T latency (seconds)
-R restart
-I call up the shutdown setting Box
For example, you need to close the computer in ten minutes:
C :\> shutdown-s-t 600
Linux:
Similarly, it is easy to implement in linux:
Enter at the terminal:
Sudo shutdown + 10 indicates that the computer will shut down after 10 minutes. If you want to cancel shutdown again, you can use ctrl + c to cancel it. if you have closed the terminal window, you can re-open a terminal and enter sudo shutdown-c to cancel the shutdown task.
Other parameters of this command:
-K does not actually shut down, but only sends a warning message to all users.
-R restarts immediately after shutdown.
-H: do not restart after shutdown
-F: Skip fsck during fast shutdown and restart
-N: Fast Shutdown without passing through the init Program
-Shut down at h.
-Q 100: shut down the running program after 100 minutes