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

travistee

Member
Jun 1, 2006
8
0
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
 

travistee

Member
Jun 1, 2006
8
0
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
 

OCX

Well-Known Member
Sep 20, 2003
231
0
166
travistee said:
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