crontab -r
Posted by matijs 20/03/2007 at 18h27
I don’t use the crontab
command on my own machines (I just put files in /etc/cron*
), but recent experience on another machine made me wonder why crontab has the following options (this is from crontab --help
):
-e (edit user's crontab)
-l (list user's crontab)
-r (delete user's crontab)
Right. E is for edit, L is for list, R is for delete. Makes sense. And as a bonus, it is easier to accidentally delete your crontab when you want to edit it.
Brilliant.