Ubuntu change crontab editor permanently

 

By mistake if an uncomfortable editor is set for crontab, we can change it with following command:

$ select-editor

The output of above command will asks you to select any editor from list as shown below:

Output:

Select an editor. To change later, run ‘select-editor’.
1. /bin/ed
2. /bin/nano <—- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny

Choose 1-4 [2]: 4

Since I am comfortable with vim chosen option 4, which will set my crontab editor as vim.tiny.

After choosing an option just press enter and open crontab, it should opened with the editor you have selected. In my case it opened with vim.tiny.

There is one more post in my blog which will set the crontab editor only for that session.

Here is the link to change crontab editor for current session only.

-Sany

One comment on “Ubuntu change crontab editor permanently

Leave a comment