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 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:
    151
    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:
    16,578
    Likes Received:
    439
    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. travistee

    travistee Member

    Joined:
    Jun 1, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    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,366
    Likes Received:
    6
    Trophy Points:
    168
    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:
    166
    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

  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