Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-07-2009, 09:53 PM   #1
LQ Newbie
Registered: Nov 2009
Distribution: ubuntu 9.10
Posts: 4

Rep: Reputation: 0
Editing host file

Hello all. I want to edit my host file (/etc/hosts). But i cannot seem to do it the way it is being described on some posts. I am very new to Linux (yesterday new), so i know i have some learning to do. I am using Ubuntu 9.10. A good step by step would be nice. Thank you
Old 11-07-2009, 10:18 PM   #2
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu 8.04
Posts: 94

Rep: Reputation: 17
Not clear on what your having trouble with. Can't save it? Don't know how to edit it?
anyway to open so you can edit and save
press alt+f2 (run dialog)
gksudo gedit /etc/hosts
Its a pretty simple file - bring up the man pages in a terminal window
man hosts
Old 11-08-2009, 09:02 AM   #3
LQ Newbie
Registered: Nov 2009
Distribution: ubuntu 9.10
Posts: 4

Original Poster
Rep: Reputation: 0
Much thanks

Thank you very much. Worked as advertised.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
appending to file, or editing a file ibabhelix Linux - Newbie 7 11-02-2009 07:11 PM
read-only file system error when editing a config file smallfrowne Linux - Newbie 5 02-19-2008 07:06 PM
editing a very large HTML file (or, extracting URLs from a file) Chriswaterguy Linux - Software 3 11-27-2007 07:07 PM
Required to achieve host to host communication via USB file transfer cable may1284 Linux - General 1 03-14-2007 05:02 PM
Editing the Host file jatabe Linux - Networking 2 08-09-2003 09:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration