Contact me:
Contact me

Crontab Editor

Last day I was trying to edit the crontab task but the default editor or the setup editor drove me crazy, I didn't know how to save, how to insert, how to exit ... Here I present a way to change the crontab editor:

- The only thing you have to do is to change the environment variable VISUAL. So, we can use the editor we want:

export VISUAL='pico -w' -> to use pico editor
export VISUAL='vim' -> to use vim editor

If you want to aply this variable to all user console, include the export in the .bashrc file located in the user home.

Share it!

Twitter Gmail Delicious Google Bookmarks Hotmail Yahoo Mail Share/Bookmark