Interview Prep/Linux/Boot, time, cron and kernel

A crontab entry's last line never runs, but all other lines do.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → The file doesn't end with a newline; cron ignores an unterminated final line (common with files deployed by tools or edited by hand).

Diagnose →

tail -c1 /etc/cron.d/jobs | xxd      # should be 0a

Fix → Add a trailing newline: echo >> /etc/cron.d/jobs.

Prevent → Use templates that end with a newline; crontab -e usually handles this.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel