LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   editing files (https://www.linuxquestions.org/questions/linux-newbie-8/editing-files-249941/)

clemrick 11-01-2004 03:30 PM

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?

Thanks

Clemrick

secesh 11-01-2004 03:31 PM

got root?

yes, you need to just open/edit/save with your favorite text-editor

jev-bird 11-01-2004 04:36 PM

for fedora try using nano. It's fairly simple to use.

jschiwal 11-01-2004 05:12 PM

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 '64.179.4.149 www.linuxquestions.org lq' >>/etc/hosts

robert644 11-01-2004 11:14 PM

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


All times are GMT -5. The time now is 12:35 AM.