在Ubuntu上,可以使用crontab命令來設置定時規則。以下是crontab在Ubuntu上的定時規則:
在crontab中,可以使用以下符號來表示時間:
例如,如果要在每天的3點運行一個腳本,可以在crontab中添加以下規則:
0 3 * * * /path/to/your/script.sh
這表示在每天的3點運行/path/to/your/script.sh腳本。
/path/to/your/script.sh