Interview Prep/Linux/Networking, SSH & Scheduling

What is cron and what is the crontab syntax?

BeginnerConceptNetworking, SSH & Scheduling
Answer

cron runs scheduled commands. Five fields: minute, hour, day of month, month, day of week.

# m  h  dom mon dow  command
*/15 *  *   *   *    /opt/scripts/health.sh
30   2  *   *   1-5  /opt/scripts/backup.sh >> /var/log/backup.log 2>&1
0    0  1   *   *    /opt/scripts/monthly.sh

crontab -e edits your table, crontab -l lists it.

All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling