Skip to content

Change default editor for crontab editor

by Jon on November 21st, 2012

By default crontab -e will use the vi text editor, some find this editor a little more challenging to use compared to nano. Changing the default editor only takes 1 command, or select it when opening crontab.

Open crontab with nano, even with the default editor still vi.

EDITOR=nano crontab -e

Change the default text editor for crontab and the operating system.

export EDITOR=nano
crontab -e

crontab text editor vi nano

From → Linux, Tech

No comments yet

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS

%d bloggers like this: