HOWTO Change Default crontab editor in linux

I was working on some sysadmin tasks on a freshly installed server, and I found out the crontab editor was not what I expected it to be. I really like nano for command line editing, so I wanted ‘crontab -e’ to use nano instead of something else like vi (vim). To make that happen, I put this into my bashrc file (location: ~/.bashrc):

export VISUAL=nano

I keep forgetting this, so I decided to blog it. Don’t forget to reload the bashrc by doing this:

source ~/.bashrc And nano will be at your service!

Skriv et svar