1 I want to turn off the machine immediately!
$shutdown-H now
2 I want to restart now
$shutdown-R Now
3 I want to shut down on time 23:30 minutes.
$shutdown-H 23:30
4 I want to shut down in 15 minutes.
$shutdown-H +15
5 Summary, you can see, if you want to let shutdown work, you have to tell shutdown command a time, whether it is now, or 23:30, or +15.
6 I want a prank!
Mischief is to scare the user. This feature is actually very practical, if you are an administrator, you can fully use the "prank" to remind all logged in users, let them quit the program as soon as possible, you have to shut down the computer.
To see how to play "prank":
$shutdown-K Now "Server would shutdown in 15minutes\!"
You see, with the-k option, that's it. The shutdown command knows that this command is just a prank and will not actually shut down. Shutdown will send the message string you set to all the users who are logged in, which will serve as a hint. Try-K! Take It easy!
"Topsy shutdown"-linux command five-minute series 13