November 21, 2020 - 1 minute read

Day 10 : Scheduling Tasks

This is part of the #LinuxUpSkillChallenge. Don't forget to also check out the Official Instructions and the Reddit posts.

Objectives of the day

  1. Cron and crontab

crontab -l

vim /etc/crontab

m - minute (0-59)

h - hour (0-23)

dom - day of the month (1-31)

mon - month of the year (1-12)

dow - day of the week (sun-sat)

@reboot   - after reboots
@yearly   "0 0 1 1 *"
@monthly  "0 0 1 * *"
@weekly   "0 0 * * 0"
@daily    "0 0 * * *"
@hourly   "0 * * * *"
  1. Timers systemctl list-timers
  2. Log Rotate
  3. Journaling journalctl

For more detail on how I did each day, check out my log on Reddit. Follow me on Twitter for daily updates.