Free2Box
Crontab 產生器IT & 開發者工具Instant browser workflowFocused single-task utilityNo setup required

Crontab 產生器

視覺化建立 Cron 排程表達式

0 9 * * *Preset matchedReadable scheduleNext runs5Fields5
Schedule builder
Adjust each field directly and keep the human-readable summary in view.

Cron expression

0 9 * * *

Readable schedule

At 09:00 AM

0-59
0-23
1-31
1-12
0-6
Quick presets
Load a common schedule, then fine-tune only the fields you need.

Export schedule snapshot

Copy the expression directly or download the upcoming run list for deployment notes.

0 9 * * *5 upcoming runs

繼續下一步

用相關的下一個動作延續你的工作流程。

Expression0 9 * * *SummaryReadable scheduleUpcoming runs5PresetMatched
Next 5 executions
Local preview of the next matching dates and times.

Sat, Apr 11, 2026

09:00 AM

#1

Sun, Apr 12, 2026

09:00 AM

#2

Mon, Apr 13, 2026

09:00 AM

#3

Tue, Apr 14, 2026

09:00 AM

#4

Wed, Apr 15, 2026

09:00 AM

#5
Syntax reference
Quick reminder of the most common cron operators.
minhourdaymonthweekday
*****

* matches any value.

1-5 creates a range.

*/5 applies a step interval.

1,3,5 picks exact values.

0 9 * * 1-5 means weekdays at 9:00.

Privacy & Trust

Preview runs locally

The next-run preview is calculated in your browser so you can iterate quickly without sending schedule data anywhere.

Five-field focus

This builder targets classic five-field Unix cron syntax: minute, hour, day of month, month, and weekday.

Timezone caution

Cron usually executes in the server timezone, so confirm runtime settings before shipping production jobs.

使用方法

1

輸入數值

在輸入欄位中填入您的數字或參數。

2

即時取得結果

結果在您輸入時自動更新——無需按計算按鈕。

3

複製或儲存

將結果複製到剪貼簿或用於您的工作流程。

為什麼使用此工具

100% 免費

沒有隱藏費用,沒有付費等級——所有功能完全免費。

無需安裝

完全在瀏覽器中運行。無需下載或安裝任何軟體。

隱私且安全

您的資料永遠不會離開您的裝置。不會上傳至任何伺服器。

支援行動裝置

完全響應式設計——在手機、平板或桌面電腦上均可使用。

開發者工具指南

Crontab 表達式:Linux 定時任務排程指南

重點摘要

  • Cron 表達式使用五個欄位定義任務執行時間:分鐘、小時、日期、月份、星期幾。
  • Cron 是 Unix/Linux 系統中最基礎的任務排程工具,幾乎所有伺服器都預裝。
  • 常見場景:數據備份、日誌清理、定期報告發送和系統健康檢查。

Cron 是 Unix/Linux 系統中的定時任務排程守護行程。透過 crontab(cron table)檔案,用戶可以安排命令或腳本在特定時間自動執行。Cron 表達式的語法雖然簡潔,但初學者常因欄位含義和特殊字元而困惑。

* * * * *

五欄位 Cron 表達式格式

常見用途

1

數據備份

每天凌晨自動備份數據庫和關鍵檔案。

2

日誌管理

定期清理或輪換日誌檔案以釋放磁碟空間。

3

監控告警

每隔幾分鐘檢查服務健康狀態並在異常時發送通知。

4

報告生成

每週或每月自動生成和發送業務報告。

實用技巧

使用網上 cron 表達式生成器驗證表達式是否表示您預期的時間表。

在 cron 任務中使用絕對路徑——cron 的環境變數與終端不同。

將 cron 任務的輸出重新導向到日誌檔案以便於偵錯。

測試新的 cron 任務時,先設定較短的間隔確認運行正常後再改為實際頻率。

本工具僅供參考與教育用途,重要場合使用前請自行驗證結果。

常見問題