Using cron on OpenWrt

What editor is used by default when executing "crontab -e " command?

OpenWrt uses vi as its default text editor:

1 Like

Is it possible to install nano editor?
...already found how to do it

opkg update
opkg install nano

Or use the web interface:

1 Like

Thanks for answer. How to make nano default editor for crontab?

1 Like

You can change the default editor by specifying the EDITOR variable:


I just didn't get, do I have to enter

export EDITOR=nano
. /etc/profile

after executing "cat << EOF >> /etc/profile.d/"?

Copy-paste the whole block of code to the terminal.

1 Like

That worked.

1 Like

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.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.