# Trình tạo biểu thức Cron

Tạo và hiểu biểu thức cron với công cụ tương tác. Xem các lần chạy tiếp theo, nhận mô tả dễ đọc và duyệt các ví dụ lịch trình cron phổ biến.

Biểu thức cron là một chuỗi gồm năm trường cách nhau bởi dấu cách, đại diện cho một lịch trình. Mỗi trường chỉ định một đơn vị thời gian — phút, giờ, ngày trong tháng, tháng và ngày trong tuần. Biểu thức cron được trình nền cron trên các hệ thống Unix sử dụng để lên lịch chạy lệnh hoặc script định kỳ vào các thời điểm, ngày hoặc khoảng thời gian cố định.

## Ví dụ Cron

### Phút

- [Mỗi phút](https://crontab.run/vi/every-minute) — `* * * * *`
- [Mỗi 1 phút](https://crontab.run/vi/every-1-minute) — `* * * * *`
- [Mỗi 2 phút](https://crontab.run/vi/every-2-minutes) — `*/2 * * * *`
- [Mỗi 3 phút](https://crontab.run/vi/every-3-minutes) — `*/3 * * * *`
- [Mỗi 4 phút](https://crontab.run/vi/every-4-minutes) — `*/4 * * * *`
- [Mỗi 5 phút](https://crontab.run/vi/every-5-minutes) — `*/5 * * * *`
- [Mỗi 6 phút](https://crontab.run/vi/every-6-minutes) — `*/6 * * * *`
- [Mỗi 7 phút](https://crontab.run/vi/every-7-minutes) — `*/7 * * * *`
- [Mỗi 8 phút](https://crontab.run/vi/every-8-minutes) — `*/8 * * * *`
- [Mỗi 9 phút](https://crontab.run/vi/every-9-minutes) — `*/9 * * * *`
- [Mỗi 10 phút](https://crontab.run/vi/every-10-minutes) — `*/10 * * * *`
- [Mỗi 15 phút](https://crontab.run/vi/every-15-minutes) — `*/15 * * * *`
- [Mỗi 20 phút](https://crontab.run/vi/every-20-minutes) — `*/20 * * * *`
- [Mỗi 30 phút](https://crontab.run/vi/every-30-minutes) — `*/30 * * * *`
- [Mỗi 60 phút](https://crontab.run/vi/every-60-minutes) — `0 * * * *`
- [Mỗi hai phút](https://crontab.run/vi/every-two-minute) — `*/2 * * * *`
- [Mỗi phút chẵn](https://crontab.run/vi/every-even-minute) — `*/2 * * * *`
- [Mỗi ba phút](https://crontab.run/vi/every-three-minutes) — `*/3 * * * *`
- [Mỗi phút lẻ](https://crontab.run/vi/every-uneven-minute) — `1-59/2 * * * *`
- [Mỗi năm phút](https://crontab.run/vi/every-five-minutes) — `*/5 * * * *`
- [Mỗi mười phút](https://crontab.run/vi/every-ten-minutes) — `*/10 * * * *`

### Giờ

- [Mỗi giờ tại phút thứ 30](https://crontab.run/vi/every-hour-at-30-minutes) — `30 * * * *`
- [Mỗi nửa giờ](https://crontab.run/vi/every-half-hour) — `*/30 * * * *`
- [Mỗi 15 phút](https://crontab.run/vi/every-quarter-hour) — `*/15 * * * *`
- [Mỗi 1 giờ](https://crontab.run/vi/every-1-hour) — `0 * * * *`
- [Mỗi 2 giờ](https://crontab.run/vi/every-2-hours) — `0 */2 * * *`
- [Mỗi 3 giờ](https://crontab.run/vi/every-3-hours) — `0 */3 * * *`
- [Mỗi 4 giờ](https://crontab.run/vi/every-4-hours) — `0 */4 * * *`
- [Mỗi 6 giờ](https://crontab.run/vi/every-6-hours) — `0 */6 * * *`
- [Mỗi 8 giờ](https://crontab.run/vi/every-8-hours) — `0 */8 * * *`
- [Mỗi 12 giờ](https://crontab.run/vi/every-12-hours) — `0 */12 * * *`
- [Mỗi giờ](https://crontab.run/vi/every-hour) — `0 * * * *`
- [Mỗi hai giờ](https://crontab.run/vi/every-two-hours) — `0 */2 * * *`
- [Mỗi giờ chẵn](https://crontab.run/vi/every-even-hour) — `0 */2 * * *`
- [Cách mỗi giờ](https://crontab.run/vi/every-other-hour) — `0 */2 * * *`
- [Mỗi ba giờ](https://crontab.run/vi/every-three-hours) — `0 */3 * * *`
- [Mỗi sáu giờ](https://crontab.run/vi/every-six-hours) — `0 */6 * * *`
- [Mỗi giờ lẻ](https://crontab.run/vi/every-uneven-hour) — `0 1-23/2 * * *`
- [Khoảng giờ](https://crontab.run/vi/hour-range) — `0 9-17 * * *`
- [Giữa các giờ nhất định](https://crontab.run/vi/between-certain-hours) — `0 9-17 * * *`

### Ngày

- [Mỗi ngày](https://crontab.run/vi/every-day) — `0 0 * * *`
- [Hàng ngày](https://crontab.run/vi/daily) — `0 0 * * *`
- [Một lần mỗi ngày](https://crontab.run/vi/once-a-day) — `0 0 * * *`
- [Mỗi đêm](https://crontab.run/vi/every-night) — `0 0 * * *`
- [Mỗi ngày lúc 1 giờ sáng](https://crontab.run/vi/every-day-at-1am) — `0 1 * * *`
- [Mỗi ngày lúc 2 giờ sáng](https://crontab.run/vi/every-day-at-2am) — `0 2 * * *`
- [Mỗi ngày lúc 8 giờ sáng](https://crontab.run/vi/every-day-8am) — `0 8 * * *`
- [Mỗi buổi sáng](https://crontab.run/vi/every-morning) — `0 9 * * *`
- [Mỗi nửa đêm](https://crontab.run/vi/every-midnight) — `0 0 * * *`
- [Mỗi ngày lúc nửa đêm](https://crontab.run/vi/every-day-at-midnight) — `0 0 * * *`
- [Mỗi đêm lúc nửa đêm](https://crontab.run/vi/every-night-at-midnight) — `0 0 * * *`
- [Mỗi Chủ nhật](https://crontab.run/vi/every-sunday) — `0 0 * * 0`
- [Mỗi thứ Hai](https://crontab.run/vi/every-monday) — `0 0 * * 1`
- [Mỗi thứ Ba](https://crontab.run/vi/every-tuesday) — `0 0 * * 2`
- [Mỗi thứ Tư](https://crontab.run/vi/every-wednesday) — `0 0 * * 3`
- [Mỗi thứ Năm](https://crontab.run/vi/every-thursday) — `0 0 * * 4`
- [Mỗi thứ Sáu](https://crontab.run/vi/every-friday) — `0 0 * * 5`
- [Mỗi thứ Sáu lúc nửa đêm](https://crontab.run/vi/every-friday-at-midnight) — `0 0 * * 5`
- [Mỗi thứ Bảy](https://crontab.run/vi/every-saturday) — `0 0 * * 6`
- [Mỗi ngày trong tuần](https://crontab.run/vi/every-weekday) — `0 0 * * 1-5`
- [Mỗi cuối tuần](https://crontab.run/vi/every-weekend) — `0 0 * * 6,0`

### Khác

- [Hàng tuần](https://crontab.run/vi/weekly) — `0 0 * * 0`
- [Một lần mỗi tuần](https://crontab.run/vi/once-a-week) — `0 0 * * 0`
- [Mỗi tháng](https://crontab.run/vi/every-month) — `0 0 1 * *`
- [Hàng tháng](https://crontab.run/vi/monthly) — `0 0 1 * *`
- [Một lần mỗi tháng](https://crontab.run/vi/once-a-month) — `0 0 1 * *`
- [Cách mỗi tháng](https://crontab.run/vi/every-other-month) — `0 0 1 */2 *`
- [Mỗi quý](https://crontab.run/vi/every-quarter) — `0 0 1 */3 *`
- [Mỗi 6 tháng](https://crontab.run/vi/every-6-months) — `0 0 1 */6 *`
- [Mỗi năm](https://crontab.run/vi/every-year) — `0 0 1 1 *`
- [Hàng năm](https://crontab.run/vi/yearly) — `0 0 1 1 *`
- [Hàng năm](https://crontab.run/vi/annually) — `0 0 1 1 *`
- [Lúc 5 giờ sáng](https://crontab.run/vi/at-5am) — `0 5 * * *`
- [Lúc 8 giờ sáng](https://crontab.run/vi/at-8am) — `0 8 * * *`
- [Lúc 12 giờ trưa](https://crontab.run/vi/at-12pm) — `0 12 * * *`
- [Lúc 6 giờ chiều](https://crontab.run/vi/at-6pm) — `0 18 * * *`
- [Lúc 9 giờ tối](https://crontab.run/vi/at-9pm) — `0 21 * * *`
- [Lúc 3 giờ sáng Chủ nhật](https://crontab.run/vi/at-3am-on-sundays) — `0 3 * * 0`
- [Lúc 9 giờ sáng thứ Hai](https://crontab.run/vi/at-9am-on-mondays) — `0 9 * * 1`
- [Lúc 6 giờ chiều thứ Sáu](https://crontab.run/vi/at-6pm-on-fridays) — `0 18 * * 5`
- [Mỗi ngày trong tuần lúc 9 giờ sáng](https://crontab.run/vi/every-weekday-at-9am) — `0 9 * * 1-5`

Canonical: https://crontab.run/vi

---

Maintained by Jsmon — https://jsmon.sh
