How to specify nano or vim as editor for crontab file

Spread the love

In this article, I’m explaining about How to specify nano or vim as editor for crontab file, when we opening crontab file. As we know vim and nano editor is a widely used command line editor. Let see how to set a default editor for crontab.

For this we are export the value of VISUAL and then run crontab -e command.

Specify nano as the editor for the crontab file

export VISUAL=nano; crontab -e

Specify vim as the editor for the crontab file

export VISUAL=vim; crontab -e

Please add as a comment your feedback and queries.


Spread the love

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *