Linux – Auto-Reboot and Shutdown with Cron Jobs

[ec2-user@ip-172-16-0-86 ~]$ sudo crontab -l
58 22 * * * root      /sbin/shutdown -h now # shutdown every night
[ec2-user@ip-172-16-0-86 ~]$

Comments