Nano editor makes it easier to edit files through the terminal/command prompt window.
In order to install it on CentOS
1. Login as root (replace localhost with your server address)
2. Type in this command and press enter
yum install nano
3. Confirm and press enter