How often will this cron job run?

View the cron job example below. How often will this cron job run? 0 */ 5 * * * command

View the cron job example below. How often will this cron job run? 0 */ 5 * * * command

A.
every 5 minutes

B.
every 5 hours

C.
every 5 days

D.
every 5th month



Leave a Reply 2

Your email address will not be published. Required fields are marked *


hoge

hoge

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

e.g.
01 * * * * root echo “This command is run at one min past every hour”
17 8 * * * root echo “This command is run daily at 8:17 am”
17 20 * * * root echo “This command is run daily at 8:17 pm”
00 4 * * 0 root echo “This command is run at 4 am every Sunday”
* 4 * * Sun root echo “So is this”
42 4 1 * * root echo “This command is run 4:42 am every 1st of the month”
01 * 19 07 * root echo “This command is run hourly on the 19th of July”

Cron also supports ‘step’ values.
A value of */2 in the dom field would mean the command runs every two days
and likewise, */5 in the hours field would mean the command runs every
5 hours.
e.g.

*/15 9-17 * * * root connection.test
Will run connection.test every 15 mins between the hours or 9am and 5pm

Asraful Azim Al Khalil

Asraful Azim Al Khalil

ANS IS B