Change crontab editor

Crontab also known as schedule task in Windows Operating System and it is very important for you to schedule your automated script run from anytime without actually taking care on those script time by time in front of your server/PC.

All of the time, vi editor have set as the default editor for crontab and if you like Mick Genie that not like vi but like nano/pico, you may actually change the editor as step below.

Method 1:

Run through run time environment.
env EDITOR=pico crontab -e

Method 2:

$ pico /etc/bashrc

then find

export EDITOR=”vi”
export VISUAL=”vi”

and replace with

export EDITOR=”pico”
export VISUAL=”pico”

Published by

Mick Genie

Mick Genie is the founder of and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.

One thought on “Change crontab editor”

Comments are closed.