Chapter 4 Flashcards

1
Q

In what directory are user’s active crontab files stored?

A

/var/spool/cron

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

Where is the active crontab file for the root user stored?

A

/var/spool/cron/root

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

Which field of valid line in the system crontab file specifies which user the command should run as?

A

The sixth field

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

The crond daemon must be restarted after which of the following actions for the action to take effect?

A

None of the above requires that the crond daemon be restarted.

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

Use the following /etc/cron.d/ file to answer the next 2 questions.

01 * * * * elvis run-parts /etc/crontab
0 1 * * 0 root /usr/sbin/raid-check

A

-

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

When will the raid-check job execute?

A

At 1:00 in the morning every Sunday

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

What configuration error is contained in the first relevant line?

A

The file /etc/crontab is a regular file, not a directory

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

Which of the following commands would instantly stop all cron jobs from executing?

A

service crond stop

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

What type of files would you expect to find in the /etc/cron.weekly/ directory?

A

Executable shell scripts

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

What type of files would you expect to find in the /etc/cron.d/ directory?

A

Text files containing crontab syntax

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

What is the smallest resolution which can be used for specifying the frequency of a cron job?

A

minutes

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