Scheduling Flashcards

1
Q

What is the command to view cron jobs for the current user?

A

crontab -l

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

What is the command to create a cron job for the current user?

A

crontab -e

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

What is the syntax structure for editing a cron job?

A

(m) (h) (day) (month) (wd) (cmd)
can specify ranges i.e:
*(all) 1-10 1,2,4 1-12/2 (every 2nd integer)

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

Where are user specific cron tabs located?

A

/var/spool/cron

/var/spool/cron/crontab

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

Where are system wide cron tabs located?

A

Edit:

/etc/crontab

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

How do you whitelist users to restrict cron jobs?

A

Create file /etc/cron.allow

with whitelisted users

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

What is the command to edit the local crontab of another user?

A

crontab -e -u

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