cron Flashcards
where is crontab located
/etc/crontab
what does cat crontab show?
A list of all scheduled jobs
how is time displayed in crontab?
minute, hour, day, month, day of week
What do you put for a time field (day, for instance) if you want the jab to always run at that time?
*
This might look like: 1 * * * *
which will run on the first minute of every hour
what comes after the time to execute the task?
The user the command will be run under, followed by the command to be executed
command to see all cron jobs for the current user
crontab -l
command to create a cron job
crontab -e (for edit)
create crons for other users
crontab -u username -e (or -l or whatever other command you want) (may need to use sudo)
keyword to make job execute hourly
instead of using all the minute day … etc fields, you can just type @hourly (or @daily, @ weekly, etc)