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.

How do I open a file like resolve.conf to edit it

Discussion in 'General Discussion' started by travistee, Jun 1, 2006.

  1. travistee

    travistee Member

    Joined:
    Jun 1, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I know this is really basic, but I haven't had to use telnet or ssh for a while.

    How do I open a file like resolve.conf to edit it.

    I know how to get to the directory.

    Thanks
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. travistee

    travistee Member

    Joined:
    Jun 1, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Like I said, I haven't used SSH for a while.

    What is the command to open the file for editing in SSH.

    Thanks
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    pico, nano or vi will do it.
     
  5. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    pico /pathtofile/filename
    nano /pathtofile/filename

    so if i want to edit the httpd.conf
    i could do it 2 ways

    cd /usr/local/apache/httpd/conf
    then
    pico httpd.conf
    or
    nano httpd.conf

    or the LONG way..
    pico /usr/local/apache/httpd/conf/httpd.conf

    then after i get done editng.
    CTRL+X
    Y



    you get the picture

    OCX
     
Loading...

Share This Page