Scheduling Flashcards
1
Q
What is the command to view cron jobs for the current user?
A
crontab -l
2
Q
What is the command to create a cron job for the current user?
A
crontab -e
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)
4
Q
Where are user specific cron tabs located?
A
/var/spool/cron
/var/spool/cron/crontab
5
Q
Where are system wide cron tabs located?
A
Edit:
/etc/crontab
6
Q
How do you whitelist users to restrict cron jobs?
A
Create file /etc/cron.allow
with whitelisted users
7
Q
What is the command to edit the local crontab of another user?
A
crontab -e -u