Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Small tip - How to change default crontab -e editor

Date: 2010-04-06 00:00:00 -0400

My favorite editor is vim, but some others prefer nano, or emacs, nano reminds me WordStar, anyway.

Cron job default editor which is invoqued by the command crontab -e is vi, while I prefer vim, and you may prefer nano, you can use this command.

env EDITOR=nano crontab -e

or as I usually do:

env EDITOR=vim crontab -e

You can create an alias

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.