Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Use vim or nano as contrab editor

Date: 2011-02-24 00:00:00 -0400

This is a small tip, I like to use, as normally in recently installed Linux, vi is used as the default editor instead of vim or nano.

So, How to change the default crontab editor to vim or nano?

To change to vim or nano just run:

export EDITOR="/usr/bin/vim" ; crontab -e

that is for vim, or.

export EDITOR="/usr/bin/nano" ; crontab -e

OK, you are now ready to work with your favorite text editor, instead of the default.

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.