0 23 * * * /path/to/backup/script.sh
0 0 * * 1 echo "" > /path/to/log/file.log
0 16 * * 6 /path/to/script.sh
/30 * * * * /path/to/script.sh
0 0 1 * * /path/to/script.sh
In the crontab
file, each line represents a periodic task, and each column represents the execution time and command information of the task. You can use the crontab -e
command to edit the crontab
file, the crontab -l
command to list the content of the current user's crontab
file, and the crontab -r
command to delete the current user's crontab
file.