Change default CentOS text editor from VI to Nano
SOURCE: http://www.khmer365.com/index.php?topic=3791.0
To change default VI Editor to Nano (Temporary)> Type the command as follows:
-
which nano -
export EDITOR=/usr/bin/nano -
crontab -e
To change default VI Editor to Nano (Permanent) > Type the command as follows:
nano /etc/profile
To change default VI Editor to Nano (Permanent) > ADD This Code to Profile:
export EDITOR=/usr/bin/nano