[SOLVED] How To Edit Hosts File?

Posted:
Jul 14th, '12, 21:43
by Kramer
Really dumb question but I can't figure it out. I am new to this distro but not to Linux, must be having a brain fart. I know I can add entries using the mcc but prefer to add all the entries at once instead of one at a time. Thanks!
Re: How To Edit Hosts File?

Posted:
Jul 14th, '12, 22:24
by Kramer
Nope, didn't work. Just says command not found.
Re: How To Edit Hosts File?

Posted:
Jul 14th, '12, 22:36
by jkerr82508
Provided you become root, then you should be able to use any text editor. (To use mcedit you would need to install the midnight commander package.)
- Code: Select all
su -
urpmi mc
mcedit /etc/hosts
Jim
Re: How To Edit Hosts File?

Posted:
Jul 14th, '12, 22:41
by Ken-Bergen
For what it's worth mcedit is a cli tool so just
- Code: Select all
su
will do.

Re: *Solved* How To Edit Hosts File?

Posted:
Jul 15th, '12, 00:37
by Kramer
Thanks for the help guys, I got it sorted thanks to you.