Editing Crontab

By default, crontab will use whatever editor is stored in the VISUAL or EDITOR environmental variable, or vi if both are undefined.

If you want to change the editor, type:

$ export EDITOR=<program>
$ export VISUAL=<program>

Replace <program> with your actual editor.

To persist this change, add this to your ~/.profile:

$ echo "export EDITOR=<program>" >> ~/.profile
$ echo "export VISUAL=<program>" >> ~/.profile

To apply this change systemwide (including root user), add this to /etc/profile:

# echo "export EDITOR=<program>" >> /etc/profile
# echo "export VISUAL=<program>" >> /etc/profile

Edit your crontab by typing crontab -e.

Cron jobs are stored in /var/cron/tabs