Using NANO with crontab for CentOS
I dont like or know how to use VI correctly and by default CentOS likes to open everything in VI, I prefer nano and find when trying to edit the crontab CentOS always wants to use VI.
Below command solves this issue and allows the use of nano for editing crontab. You will need to try either of the solutions below, I have found some servers both work, some only one or the other works.
1 |
export VISUAL=nano; crontab -e |
1 |
sudo env EDITOR=nano; crontab -e |