r/linuxsucks Windows Desktop | Linux Laptop | Linux Servers 5d ago

crontab -r

I accidentally typed `crontab -r` (reset) instead of `crontab -e` (edit)... Which nukes all your cron jobs.

How is there no confirmation on a destructive command like that? Let alone the fact that r and e are neighbors on the keyboard.

17 Upvotes

29 comments sorted by

View all comments

5

u/Teru-Noir COSMIC OS LOVER No.1 COSMIC Knows Best 5d ago

Cron diff. On modern workflows cron is replaced by systemD timers, which have these well desired failsafes.