Cron Job

Edit crontab
crontab -e
mm hh dd MM WK COMMAND (eg. * * 7 1 * uptime >> /var/log/uptime.log)

List all cron jobs
crontab -l

Remove crontab
crontab -r

Install crontab from file
crontab ~/mycron.txt (install)

Manage crontab of other user
crontab -u alan -e
crontab -u alan -l
crontab -u alan -r
crontab -u alan ~/mycron.txt

Control who can access crontab
vim /etc/cron.deny
vim /etc/cron.allow
(Enter username)

Leave a Reply

Your email address will not be published. Required fields are marked *