Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    8

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

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,892
    cPanel/Enkompass Access Level

    Root Administrator

    Arrow

    edit file in SSH. That should help.

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    8

    Default

    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. #4
    Member sawbuck's Avatar
    Join Date
    Jan 2004
    Posts
    1,313
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    pico, nano or vi will do it.

  5. #5
    OCX
    OCX is offline
    Member
    Join Date
    Sep 2003
    Posts
    246

    Default

    Quote Originally Posted by travistee
    Like I said, I haven't used SSH for a while.

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

    Thanks
    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

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 11-09-2009, 06:18 AM
  2. How do I edit the http.conf file?
    By everyaa in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-05-2005, 12:22 PM
  3. Unable to open HTTPD.Conf file.
    By inogenius in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 08-11-2005, 10:07 AM
  4. help about Please edit the example config file /etc/clamav.conf
    By sa3di in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-13-2004, 06:42 PM
  5. cant open or edit .htaccess file for bandmin
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-28-2002, 05:45 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube