Changing the editor used by "crontab -e"

Running man crontab will tell you that running crontab -e will fire up an editor and let you edit your account's crontab file. Unfortunately, it seems to always default to vi. That editor is not friendly to me in the least.

Fortunately it is easy to change the editor that crontab uses. Simply type export EDITOR=pico to use the simple pico editor, or replace pico with your favorite text-mode text editor.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <embed> <object> <param>
  • Lines and paragraphs break automatically.
  • You can use BBCode tags in the text. URLs will automatically be converted to links.

More information about formatting options

CAPTCHA
Be ye bot or be ye not?