Linux Cron Jobs
Schedule recurring tasks with crontab and sane logging.
- linux cron
- crontab
- schedule task
- cron log
- cron every 5
Linux Cron Jobs
Schedule recurring tasks with crontab and sane logging.
Commands
| Command | What it does |
|---|---|
crontab -e | Edit your schedule |
crontab -l | List current jobs |
daily 2 AM with logs | Cron line with output redirect |
every 5 minutes | Slash-step schedule |
systemctl status cron | Is the daemon running? |
Example
0 2 * * * /opt/backup.sh >>/var/log/backup.log 2>&1
FAQ
My cron job never runs - checklist?
Daemon running, absolute paths, env vars set inside crontab, and output redirected to a log you read.
Cron vs systemd timers?
Cron for simple schedules; timers add logging and dependencies for critical jobs.
よくある質問
My cron job never runs - checklist?
Daemon running, absolute paths, env vars set inside crontab, and output redirected to a log you read.
Cron vs systemd timers?
Cron for simple schedules; timers add logging and dependencies for critical jobs.
Linux
Linux Files and Directories
Navigate, create, move, and inspect files with core commands.
Linux Permissions
Read ls output, chmod, chown, and sudo without breaking access.
Linux Text Processing
cat, head, cut, sort, uniq, and awk for daily data shaping.
Linux grep and find
Find files by name, age, and size; search inside them fast.