Reminds me of the time I accidentally typed in 'crontab -d' instead of 'crontab -e'.
Those two letters are eerily too close to eachother.
Those two letters are eerily too close to eachother.
My personal crontab is in a separate file in a source control system. I don't use `crontab -e`; I edit that file and feed it to the `crontab` command.
(It would be nice if HN handled backticks the way they're done in Markdown.)
I remember using crontab -r assuming that -r is to open it in read only mode. like vim -R
Bad assumption!
Some platforms it's -r, others it's -d. I suspect it's down to which cron daemon you run but never really cared enough to investigate. In any case, both are next to the 'e' key so either are just as dangerous in terms of typos.