When you use crontab for the first time, it appears
No crontab for root-using an empty one
"Select a editor ..." There are a few options under which you are asked to select an editor. (choose Vim) on it, I chose the second one.
650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8F/61/wKioL1jcsiKjYPb-AAAkBGS5iIc672.png-wh_500x0-wm_ 3-wmp_4-s_4074930217.png "title=" 1.png "alt=" Wkiol1jcsikjypb-aaakbgs5iic672.png-wh_50 "/>
But I chose the wrong, this will encounter some trouble, there is no way to normal editing, crontab-e. What to do? The problem is as follows:
650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/8F/64/wKiom1jcsoqCoiVcAADIHBSwyfA958.png-wh_500x0-wm_ 3-wmp_4-s_4218332631.png "title=" 2.png "alt=" Wkiom1jcsoqcoivcaadihbswyfa958.png-wh_50 "/>
The editing interface becomes this way, and I really don't know how to edit and change its contents.
Execute this command: Select-editor (a command for crontab) allows you to re-select it. Choose Three when you re-select
When setting crontab, you may be able to manipulate the stuff
Set default editing mode Vim/etc/profile add Export Editor=vim
Vim/etc/cron.allow, Vim/etc/cron.deny
CRONTAB-E results are stored in/var/spool/cron/crontabs
This article is from the "11842333" blog, please be sure to keep this source http://11852333.blog.51cto.com/11842333/1911776
Linux system uses crontab for the first time, cannot edit normally