Mac timer shutdown, restart, hibernate command line

Source: Internet
Author: User

For some reason (programmers know), you need to do something with your company's computer at the time of not working. So the company computer rarely shuts down. But the computer will become very stuck in the absence of many days after the shutdown. So now the first thing to go to the company every morning is to restart the computer first. Manual restart, too incompatible with the programmer's style. So, I think of the command line timed shutdown restart.

The command is very simple:

Shutdown:

sudo shutdown-h yymmddhhmm
Restart :

sudo shutdown-r  yymmddhhmm
hibernation:

sudo shutdown-s yymmddhhmm
where yymmddhhmm refers to a particular time.

For example, I have to restart the computer at 22:30 this (March 4, 2015) evening, so the command should be:

sudo shutdown-r 1503042230
you need an administrator right here, enter your computer's password, and then enter it.

Mac timer shutdown, restart, hibernate command line

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.