A soapbox for musings, code, and other technical nonsense

Archive Posts for October 2009

Karmic Koala
10/29/2009 at 8:28 p.m. (5 years ago)

Get it while it's hot.

Tags: Hooray Beer, Ubuntu, Linux
The Danger of crontab
10/28/2009 at 8:31 a.m. (5 years ago)

I only recently discovered why it is so dangerous to make crontab -e and crontab -r do such different things and yet be so close together on the US keyboard layout. The first command allows you to edit your cronjobs in your favorite editor, while the second one erases your list of jobs without hesitation.

To prevent this problem, I recommend two things. First, regularly back up your /var/spool/cron/[username] file, which is where this data lives. Second, alias crontab -r to crontab -ri, which prompts to make sure you actually want to do that.

Tags: Linux, Morons