Linux restart at a specified time

After an update session it is not always possible to do the restart immediately.
Therefore Linux has an option to time the restart on a 24h clock bases.

On Ubuntu the command looks like:

sudo shutdown 23:00 -r

The two option that can be used are:

-h actually halt system, ready for power off
-r shutdown and automatically perform a re-boot

Usually “-r” is the preferred one for remote servers in combination with the “screen” command.

Leave a Reply

Your email address will not be published. Required fields are marked *