Linux crontab

1. 在线CRON表达式

https://tool.lu/crontab

2. crontab命令

# 修改 crontab 文件,如果文件不存在会自动创建
crontab -e
# 显示 crontab 文件
crontab -l
# 删除 crontab 文件
crontab -r
# 删除 crontab 文件前提醒用户
crontab -ir

3. crontab示例

# 添加crontab
crontab -uroot -e
# 定时执行的sh脚本
0 0 * * * /u01/crontab_clear_log.sh
posted @ 2022-05-22 15:27  逢生博客  阅读(53)  评论(0)    收藏  举报