0

I am new to linux and the command line. I am using VirtualBox with linux/ubuntu and needed to open my httpd.conf file to add the following:

ServerName localhost

Now I am stuck here and cannot figure out how to save this and go back to the command line. I know this is easy for the pros but I am completely new at this.

Thanks!

P.S. I searched Google and stackoverflow as I was sure this would have already been answered but I could not find anything on it.

Here is the screen shot.

http://i451.photobucket.com/albums/qq235/tech0925/asdfsafsf_zps80a61cd1.png

4

1 回答 1

1

例如,您可以使用vi打开文件

vi /path/to/your/httpd.conf

文件打开后,您可以更改为 vi 的编辑/插入方式

:i

并编辑您的文件。编辑后你不能写和关闭你的文件

:wq

//编辑:

您可以使用nano(您的编辑器)存储您的文件

CTRL+x
yes
于 2013-07-29T18:36:25.283 回答