1.1 Function Description
Shut down the system
1.2 syntax format
Shutdown [Option]... time [Message]
Parameters |
Simplified Solution |
-R |
Restart Calculator |
-H |
Power off after Shutdown |
-P |
Power off after Shutdown |
-C |
Cancel the currently executing Shutdown program |
-K |
No shutdown, just send an alarm |
-T |
Delayed Shutdown Time |
1.3 practical operations
Instance 1-1
Problem:Close nowLinuxSystem, whereNowEquivalent0Status
Command 1: shutdown-H now
Instance 1-2
Problem:System2Restart in minutes
Command: shutdown-R + 2
Note: "+ 2" indicates that the instance is shut down or started several minutes later.
Instance 1-3
Problem:Set the time at which the system is shut down
Command: shutdown-H :30
Instance 1-4 get the previous shutdown command
Command: shutdown-C
Instance 1-5 sends information to all logged-on users
Command: shutdown-K "Now"
Instance 1-6 shut down the system in 10 seconds and send a prompt message to the user
Command: shutdown-T 10-H now "system will shutdown 10 sencond later"
This article is from the "Technical blog" blog, please be sure to keep this source http://yinjianbin.blog.51cto.com/4529118/1874113
Shutdown command Summary