Linux – How can I change the default crontab editor

cronlinux

Can I change the default crontab editor to vi editor? If so, how?

Best Answer

Most of the time I do something like:

# env EDITOR=vi crontab -e

or

# env VISUAL=vi crontab -e