Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Host File


  • This topic is locked This topic is locked

#1
J0hn

J0hn

    Member

  • Member
  • PipPip
  • 65 posts
I can't seem to edit the host file on Redhat. Here is a description of what I did:

I went to the terminal and typed in the following:

[root@localhost ~]# cd /etc
[root@localhost etc]# ls
whatever									docs
etc etc etc								  anything
hosts										   example
[root@localhost etc]# lv hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
~
~
~
~
~
~
Hosts:

^ After I type in lv hosts, I can't seem to edit it. I don't know what to do after that. I want to edit the hosts file and add my own list to it. It should look something like this I believe:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
127.0.0.1 www.xxxxxx.com
127.0.0.1 www.alkjdfla.com

^ So yea how would I do that? By the way, I am logged in as root :whistling:

On windows it's pretty straight foward, just locate host file and copy, past, and save that's it. However on linux it's different. Have any of you ever tried editing the host file on linux? If so can you guide me through it?

EDIT:

No need to help anymore, I got it now :blink:

Edited by J0hn, 30 May 2006 - 12:25 PM.

  • 0

Advertisements







Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP