Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

How to change crontab editor in Debian Linux
https://forum.ivorde.com/how-to-change-crontab-editor-in-debian-linux-t19111.html
Page 1 of 1

Author:  mandrei99 [ Tue Sep 23, 2014 6:04 am ]
Post subject:  How to change crontab editor in Debian Linux

How to change crontab editor in Debian Linux - using update-alternatives

Code:
$ sudo update-alternatives --config editor
There are 3 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/nano            40        manual mode
  2            /usr/bin/vim.basic   30        manual mode
  3            /usr/bin/vim.tiny    10        manual mode

Press enter to keep the current choice[*], or type selection number: 3
update-alternatives: using /usr/bin/vim.tiny to provide /usr/bin/editor (editor) in manual mode

Author:  tsuchan [ Tue Mar 08, 2016 6:53 pm ]
Post subject:  Re: How to change crontab editor in Debian Linux

Nothing I could do persuaded the editor to work in vi, even though the asterisked value was already option 2. So I un-installed nano. That worked.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/