Linux crontab
Tue 23 September 2025
Linux crontab
- 在线CRON表达式
https://tool.lu/crontab
- crontab命令
# 修改 crontab 文件,如果文件不存在会自动创建
crontab -e
# 显示 crontab 文件
crontab -l
# 删除 crontab 文件
crontab -r
# 删除 crontab 文件前提醒用户
crontab -ir
- crontab示例
# 添加crontab
crontab -uroot -e
# 定时执行的sh脚本
0 0 * * * /u01/crontab_clear_log.sh
Category: 待整理