cPanel Admin Tips & Hints

QUICK TIP: change the default SSH text editor

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!

This entry was posted in Quick Tips, SSH. Bookmark the permalink.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Bad Behavior has blocked 6982 access attempts in the last 7 days.

Page optimized by WP Minify WordPress Plugin