The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,475
    Likes Received:
    20
    Trophy Points:
    38
    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
     
  3. smile

    smile Well-Known Member

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

    DeepakW Active Member

    Joined:
    Nov 13, 2005
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    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