Ever wanted to change the crontab of a server, but got an editor on screen that you’re totally unfamiliar with? There are a lot of causes for this annoyance, but one is that somebody recently installed or used midnight commander (mc) which for whatever reason seams to overrule your session’s default editor.
Changing the editor
The first time it took me a while to figure it out so I thought lets make it an article on my site, so maybe it will help others save some time.
Anyhow, here how to change it, just open your terminal and type
Make it permanent
If the problem persists, you might want to add the export to your .bashrc file, or even to the /etc/profile file. But that seems a bit radical since that’s system-wide : )
Debian / Ubuntu
As noted by Roland below, on Debian / Ubuntu you can use:
These were imported from my old blog. Please use disqus below for new comments