cron job scheduling

 The crontab file is that it contains a comment-based tutorial which will instruct you on all commands:

Code for the above Examples

  0 0 * * 0 root      /sbin/shutdown -r now # reboot every sunday at 00:00 am