Skip to content

필사 모드: What is CronTab?

English
0%
정확도 0%
💡 왼쪽 원문을 읽으면서 오른쪽에 따라 써보세요. Tab 키로 힌트를 받을 수 있습니다.
원문 렌더가 준비되기 전까지 텍스트 가이드로 표시합니다.

What is CronTab?

CronTab is a task scheduling program used in operating systems such as Unix, Linux, and macOS. It allows you to define commands or scripts to be executed at regular intervals, helping you manage tasks that need to run automatically. It is commonly used to automate repetitive tasks such as backups, log file deletion, and server data cleanup.

CronTab Examples

30 2 * * * /usr/bin/find

This means to execute the /usr/bin/find command every day at 2:30 AM.

5 4 * * 1-5 /usr/local/bin/script.sh

This means to execute /usr/local/bin/script.sh at 4:05 AM from Monday to Friday.

0 4 * * 0,6 /usr/local/bin/weekend.sh

This means to execute /usr/local/bin/weekend.sh at 4:00 AM on weekends.

For more details, you can check using the man crontab command.

CronTab Syntax

You can check the meaning of crontab expressions at [https://crontab.guru/](https://crontab.guru/).

The CronTab syntax is as follows.

* * * * * command

- - - - -

| | | | |

| | | | ----- Day of week (0 - 7) (Sunday = both 0 and 7)

| | | ------- Month (1 - 12)

| | --------- Day of month (1 - 31)

| ----------- Hour (0 - 23)

------------- Minute (0 - 59)

Quiz

What is CronTab?

This means to execute the /usr/bin/find command every day at 2:30 AM. This means to execute

/usr/local/bin/script.sh at 4:05 AM from Monday to Friday. This means to execute

/usr/local/bin/weekend.sh at 4:00 AM on weekends.

You can check the meaning of crontab expressions at https://crontab.guru/. The CronTab syntax is

as follows.

현재 단락 (1/24)

CronTab is a task scheduling program used in operating systems such as Unix, Linux, and macOS. It al...

작성 글자: 0원문 글자: 1,258작성 단락: 0/24