/etc/init.d/crond start
crontab -l 顯示目前排程crontab -r 刪除所有排程(慎用)crontab -e 編輯排程(預設編輯器)分 時 日 月 週 指令
0 4 * * 2,5 /usr/bin/wall < /etc/motd
# 每週二、五 04:00 廣播 /etc/motd 內容
*/2 12-14 * 3-6,9-12 1-5 /path/to/script.sh
# 每年 3-6 月、9-12 月,週一至週五,12:00-14:00,每 2 分鐘執行一次 script.sh
系統層級排程檔:/etc/crontab

掌握 crontab -e 編輯與時間欄位語法,即可靈活部署各類定時維運任務。