Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Default text Editor On cPanel 11

Discussion in 'General Discussion' started by aisagtr, Jul 30, 2007.

  1. aisagtr

    aisagtr Guest

    Whenever I do a crontab -e, I always see teh VI editor instead of the nano which I have installed.

    Anyone any idea as to how to change this? I hate VI.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    For the root account only, edit /root/.bashrc and add the lines:

    export EDITOR="nano"
    export VISUAL="nano"


    For all users, add those lines to /etc/bashrc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. smile

    smile Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    156
    Is their any restart required after this, I tried and it still doesn't works
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. DeepakW

    DeepakW Active Member

    Joined:
    Nov 13, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    I think no need to restart any service just logout from the current SSH session and
    login again. Now check it again, it should be working.

    Please make sure you are making the changes for the user which you are using to
    access SSH.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice