LinuxAnswers - the LQ Linux tutorial section.
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-01-2004, 03:30 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
editing files

I am just learning about linux and installed Fedora C2. I am having a problem and the solution seems to be to edit the /etc/hosts file.

What program do I use to do this? One of the text editors that came with Fedora? And anything special I need to do besides open the file, edit it, and save it?


Old 11-01-2004, 03:31 PM   #2
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
got root?

yes, you need to just open/edit/save with your favorite text-editor
Old 11-01-2004, 04:36 PM   #3
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
for fedora try using nano. It's fairly simple to use.
Old 11-01-2004, 05:12 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
If what you want to do is simply add an entry to your /etc/host file, all you have to do is use redirection.
For example:
echo ' lq' >>/etc/hosts
Old 11-01-2004, 11:14 PM   #5
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 125

Rep: Reputation: 15
gedit is a gui editor, similar in use to notepad. you can't go wrong with that


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
editing files zexter Linux - Software 2 11-05-2004 11:27 AM
Editing Files Rv5 Programming 3 09-08-2004 09:06 PM
Editing files Hone101 Linux - General 3 03-22-2003 12:47 PM
Editing files nicomon Linux - General 3 12-02-2002 10:43 PM
re: editing files malbowges Linux - Newbie 1 04-30-2002 07:53 PM

All times are GMT -5. The time now is 11:20 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