crontab チートシート(Ubuntu)

ユーザークロンの編集と例。

編集・一覧

crontab -e
crontab -l
crontab -r

記法の例(5フィールド)

分 時 日 月 曜日 コマンド

0 3 * * * /usr/local/bin/backup.sh
0 * * * * /path/to/hourly.sh
0 0 * * 0 /path/to/weekly.sh

システム cron(参考)

ls /etc/cron.d/