Where to start First steps track · 15 stages
Linux Labs

Scheduler

  • Cron — the task scheduler

    Running tasks on a schedule: crontab syntax, classic cron and modern systemd timers.

    crontab -ecrontab -lsystemctl list-timers

    6 min
  • systemd timers — scheduled jobs

    A systemd timer is a .timer unit that starts the service of the same name on a schedule; its output goes to the journal.

    systemctl list-timerssystemctl enablesystemctl start

    11 min
  • at — a one-time scheduled job

    Run a command once at a given time — unlike cron's recurring schedule.

    echoat nowat -f

    4 min
  • flock — preventing a second run

    flock holds a file lock while a command runs, so a second copy of the script waits for it or exits at once.

    flock -nflock -wflock

    9 min
Loading…