Shutdown your Linux system at a specific time (Works for the most Linux Distributions )

To shut down a Linux operating system at a specific time, a simple command is sufficient:

$ sudo shutdown -h hh:mm

where “hh: mm“, the time is, therefore, as example .:

$ sudo shutdown -h 22:30

The, computer shutdown automatically at 22: 30h. The whole can be packed in a cron job, if you want to achieve this behavior regularly.

More possibilities for shutdown are:

$ sudo shutdown -h now

( shutdown the computer immediately)

$ sudo shutdown -h +20

( shutdown the computer in 20 minutes )