What editor is used by default when executing "crontab -e " command?
OpenWrt uses vi
as its default text editor:
https://openwrt.org/docs/guide-user/base-system/user.beginner.cli#editing_files
Is it possible to install nano editor?
...already found how to do it
opkg update
opkg install nano
Or use the web interface:
https://openwrt.org/docs/guide-user/base-system/cron#web_interface
Thanks for answer. How to make nano default editor for crontab?
You can change the default editor by specifying the EDITOR
variable:
https://openwrt.org/docs/guide-user/base-system/user.beginner.cli#profile_customization
I just didn't get, do I have to enter
export EDITOR=nano
EOF
. /etc/profile
after executing "cat << EOF >> /etc/profile.d/custom.sh"?
Copy-paste the whole block of code to the terminal.
That worked.
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.