Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another dangerous command is `crontab` with no arguments. It reads a new crontab from standard input. If you type Ctrl-C, it will abort and leave your existing crontab in place. If you type Ctrl-D, you've just created a new empty crontab and clobbered your old one.

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.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: