Working with Cron Jobs Flashcards

1
Q

A Linux host maintains a list of Cron jobs in a file located at?

A

/etc/crontab

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

What information does the crontab file contain?

A

the time interval after which the command has to run, the username that runs the command, and the command itself

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

What is the cron’s minimum scheduling time?

A

one minute

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

What needs to be done if there is a requirement to run a cron job more often than every 1 minute?

A

a combination of the cron service and a shell script

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

How to open the crontab configuration?

A

crontab -e

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

What are the 2 different types of cron jobs?

A

user-specific cron jobs and system-wide cron jobs

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

Why would and attacker choose to run a system cron job and not a user cron job?

A

system cron jobs typically run with elevated privileges (often as the root user)

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

What is the path and the name of the primary system-wide cron configuration file?

A

/etc/crontab

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

How to list content of the directory that olds scripts that are run daily?

A

ls -l /etc/cron.daily

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

How to list content of the directory that olds scripts that are run daily?

A

ls -l /etc/cron.hourly

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

How to list content of the directory that olds scripts that are run daily?

A

ls -l /etc/cron.weekly/

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

How to list content of the directory that olds scripts that are run daily?

A

ls -l /etc/cron.monthly/

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

How to view the crontab of the current user?

A

crontab -l

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