Linux CLI - Cron and SchedulingHow would you schedule a cron job to run every 15 minutes only between 8 AM and 10 AM daily?A0 8-10/15 * * * /usr/bin/fifteen_min_task.shB15 */8-10 * * * /usr/bin/fifteen_min_task.shC*/15 8-10 * * * /usr/bin/fifteen_min_task.shD*/15 * 8-10 * * /usr/bin/fifteen_min_task.shCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand minute and hour fields*/15 in minute means every 15 minutes; 8-10 in hour means hours 8,9,10.Step 2: Verify the schedule matches requirement*/15 8-10 * * * /usr/bin/fifteen_min_task.sh runs every 15 minutes during hours 8, 9, and 10 daily.Final Answer:*/15 8-10 * * * /usr/bin/fifteen_min_task.sh -> Option CQuick Check:Minute '*/15' and hour '8-10' for correct timing [OK]Quick Trick: Use '*/15' for every 15 minutes and hour range for time window [OK]Common Mistakes:Placing '*/15' in hour fieldMisusing slash in hour fieldConfusing day and hour fields
Master "Cron and Scheduling" in Linux CLI9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Linux CLI Quizzes Archiving and Compression - zip and unzip - Quiz 9hard Archiving and Compression - Why compression saves storage and bandwidth - Quiz 6medium Archiving and Compression - tar (create and extract archives) - Quiz 4medium Archiving and Compression - gzip and gunzip - Quiz 13medium Cron and Scheduling - Common cron expressions - Quiz 8hard Cron and Scheduling - Cron log monitoring - Quiz 13medium Package Management - yum/dnf (RHEL/CentOS) basics - Quiz 11easy SSH and Remote Access - Why SSH enables secure remote management - Quiz 5medium System Administration - Why sysadmin skills manage production servers - Quiz 12easy System Administration - Firewall basics (ufw, iptables) - Quiz 6medium