🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Bash Scripting for DevOps: all 10 questions

Quiz: Bash Scripting for DevOps · Question 7 of 10

What does the cron line 30 2 1-5 /home/deploy/backup.sh mean?

What does the cron line 30 2 * * 1-5 /home/deploy/backup.sh mean?

  1. A.Every 30 minutes, every 2 hours
  2. B.At 02:30 on the 1st to 5th of each month
  3. C.At 02:30, Monday to Friday
  4. D.At 30 seconds past 2 a.m. every day
Answer & explanation

Correct answer: At 02:30, Monday to Friday

The fields are minute, hour, day of month, month and day of week; 1-5 in the last field is Monday to Friday.

Can you get the rest right without peeking?

Take the timed Quiz: Bash Scripting for DevOps quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →