Published on

Schedule cron task

Authors
  • avatar
    Name
    Jimmy Lai
    Twitter

Introduction:

Users set up cron jobs in the crontab to streamline regular maintenance activities, like software updates, backup creation, and cache clearing. Learn how to set up a cron job in Linux and reduce your workload by automating repetitive tasks. The Cron daemon is a built-in Linux utility that reads the crontab (cron table) file and executes commands and scripts at predefined times and intervals.

  1 0 * * * * env DISPLAY=:0 xterm -hold -e "zsh -ic 'sudo pacman -Sy'"