"Topsy shutdown"-linux command five-minute series 13

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.