Bird
0
0

If you add this line in crontab -e:

medium📝 Command Output Q4 of 15
Linux CLI - Cron and Scheduling
If you add this line in crontab -e:
30 2 * * 1 /home/user/script.sh
When will the script run?
AAt 2:30 PM every day
BAt 2:30 PM every Monday
CAt 2:30 AM every Monday
DAt 2:30 AM every day
Step-by-Step Solution
Solution:
  1. Step 1: Decode the cron time fields

    Minute=30, Hour=2, Day of month=*, Month=*, Day of week=1 (Monday)
  2. Step 2: Interpret the schedule

    The job runs at 2:30 AM on every Monday.
  3. Final Answer:

    At 2:30 AM every Monday -> Option C
  4. Quick Check:

    Day 1 = Monday, hour 2 = 2 AM [OK]
Quick Trick: Day 1 means Monday, hour 2 means 2 AM [OK]
Common Mistakes:
  • Confusing AM and PM hours
  • Misreading day of week field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes