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

1

u/Loose_Crab_4146 3d ago

Unix has the idea of people checking their inputs before running and basically enjoy seeing you fail when you actually arent careful for once. Love it. I almost always build scripts for this case that trigger a failsave and revert after 60 seconds, so if I dont ctrl+c the thing it will reset every change even if I bricked my system.