Why crontab -e doesn't use the correct editor?

roberto.preziusi at gmail.com roberto.preziusi at gmail.com
Mon Nov 14 08:23:04 UTC 2011


2011/11/11 Peng Yu <pengyu.ut at gmail.com>

>
> $ sudo update-alternatives --config editor
> [sudo] password for pengy:
> There are 6 choices for the alternative editor (providing /usr/bin/editor).
>
>  Selection    Path                Priority   Status
> ------------------------------------------------------------
> * 0            /usr/bin/vim.gnome   60        auto mode
>  1            /bin/ed             -100       manual mode
>  2            /bin/nano            40        manual mode
>  3            /usr/bin/mcedit      25        manual mode
>  4            /usr/bin/vim.gnome   60        manual mode
>  5            /usr/bin/vim.gtk     50        manual mode
>  6            /usr/bin/vim.tiny    10        manual mode
>
> Press enter to keep the current choice[*], or type selection number:
>
>
>
Con you conferm me wich file is linked to EDITOR in /etc/alternatives ?

*ls -l /etc/alternatives/ | grep "editor ->"*

I choose vim.tiny for everything:

$ ls -l /etc/alternatives/ | grep "editor ->"
lrwxrwxrwx 1 root root  17 2011-05-29 17:18 editor -> */usr/bin/vim.tiny*

I love VIM
:)
bye
-- 
Preziusi Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20111114/82046ddb/attachment.html>


More information about the ubuntu-users mailing list