4

In the following Terminal command sudo shutdown -r now, there is a time set ("...now"). Is there a way to set a specific time.
For example, could it be sudo shutdown -r -int 1200?

1
  • 1
    You can access the manual (man page) for all (well, most) commands by running man COMMAND-NAME in Terminal.
    – nohillside
    Dec 18, 2014 at 10:25

2 Answers 2

4

From man shutdown:

-r      The system is rebooted at the specified time.

[...]

 time    Time is the time at which shutdown will bring the system down and may be the word now
         (indicating an immediate shutdown) or specify a future time in one of two formats:
         +number, or yymmddhhmm, where the year, month, and day may be defaulted to the current
         system values.  The first form brings the system down in number minutes and the second
         at the absolute time specified.

More to be found at “How to shutdown Linux at a specific datetime from terminal?” on Unix & Linux Stack Exchange and The OS X-specific man page.

1
sudo shutdown -r 12:00

As @napcae mentioned, information can be found using man shutdown, but here's another reference:

http://www.computerhope.com/unix/ushutdow.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .