Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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