Cron(ie) Tab Review Flashcards

Task scheduler Review - commands, time frame format

1
Q

Edit crontab entries for the root user

A

sudo crontab -e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

crontab -u Robert -l

A

View crontab entries for the user Robert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Interpret the following crontab format:

15 5 * * 0 /path/to/script.sh

A

Run script.sh file at 5:15am on Sundays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Set script24.sh to run every 4 days at 2 am

A

0 2 */4 * * /path/to/script24.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Interpret the following crontab format:

0 0-2 * * 7 /path/to/script07.sh

A

Run script07.sh from 12am to 2 am on Sundays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Interpret @monthly /path/to/script12.sh

A

Run script12.sh at 12 am monthly on the first day of the month

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Run script48.sh on the 5th day of January, April, July and October at 11:59 pm

A

59 23 05 jan,apr,jul,oct * /path/to/script48.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Interpret the following crontab format:

”* * * * * “ /path/to/script2.sh

A

Run script2.sh every minute of every day

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Run script10.sh every 2 hours from Wednesday to Saturday every week

A

00 */2 * * 3-6 /path/to/script10.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Run script8.sh every hour

A

0 * * * * path/to/script8.sh

-OR-

@hourly /path/to/script8.sh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Run script12.sh at 12 am monthly on the first day of the month

A
  • @monthly /path/to/script12.sh
  • interpret 0 0 1 * * /path/to/script4.sh
  • ”* 0 1 * * “ /path/to/script4.sh
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

0 2 4 * * /path/to/script24.sh

A

Set script24.sh to run on the 4th day of every month at 2 am

How well did you know this?
1
Not at all
2
3
4
5
Perfectly