Skip to main content
4 of 7
Added link to man page and a better time/date format
ndemou
  • 3k
  • 2
  • 24
  • 27

No you can't specify a date at the shutdown command but two alternatives exist:

The easiest is to use the at command. The following example will shutdown at 10:10am (10:10am + 5) and give a 5min warning (+5):

echo "shutdown +5" | at 10:05am 2019-01-19

but if you don't mind using you calculator and want to shutdown in say 24hours (24*60=1440 minutes):

shutdown -r +1440
ndemou
  • 3k
  • 2
  • 24
  • 27