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!

How can save edited files via vi command?

Discussion in 'General Discussion' started by 4402734, Sep 22, 2005.

  1. 4402734

    4402734 Active Member

    Joined:
    Sep 20, 2005
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    156
    I can open and edit files with vi command, but cannot save them?
    please,help me.

    thanks
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,436
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gupi

    gupi Well-Known Member

    Joined:
    Apr 27, 2004
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    166
    You can also try to use pico or nano instead.
    These two editors are available in most *nix distros, and are easy to work with.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. 4402734

    4402734 Active Member

    Joined:
    Sep 20, 2005
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    156
    I am logining via root, but my server don`t accept pico command. how can i enable this command on my server?
     
  5. gupi

    gupi Well-Known Member

    Joined:
    Apr 27, 2004
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    166
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Kelowna, BC.
  7. John9276

    John9276 Member

    Joined:
    Jun 10, 2005
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    151
    How did you even edit the file in VI!??

    Here's a tutorial: http://www.eng.hawaii.edu/Tutor/vi.html

    I learned Vi on Mandrake, which I later found out used a different version of vi then what I now use on FreeBSD.
     
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