Ok, this really applies to CentOS more than cPanel directly, but here’s a quick and easy tip for you.
If you’ve ever wanted to change the default text editor used while in an SSH session (for instance, you like ‘nano’ but crontab -e forces you to use ‘vi’) and didn’t know how, it’s actually really simple.
At a command prompt, just type:
export VISUAL = ‘nameofeditor‘
That’s it! The next time you use a command that automatically starts a text editor, it will default to whatever one you put in ‘nameofeditor’! One last note: you can also put flags or switches inside the single quotes if you needed to (e.g., export VISUAL = ‘pico -w’).
Do you have any quick tips or tricks to share? Let us know in the comments!