Linux system uses crontab for the first time, cannot edit normally

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.