RHCSA1 Flashcards

1
Q

How to set up cron?
For a specific user

How to format cronjob?

A

crontab -e
crontab -e -u

MIN HOUR DOM MON DOW CMD
Field    Description    Allowed Value
MIN      Minute field    0 to 59
HOUR     Hour field      0 to 23
DOM      Day of Month    1-31
MON      Month field     1-12
DOW      Day Of Week     0-6
CMD      Command         Any command to be executed.

ex:
30 08 10 06 * /home/maverick/full-backup
30 08 10 06 * myjob.sh&raquo_space; /var/log/myjob.log 2>&1

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