Results 1 to 9 of 9
  1. #1
    stu_69
    Guest
    editing the host file in OSX???
    Can anyone tell me how to edit the host file in OSX? I need to add some entries and if I try using textedit it wont allow me to save it. I have not got a clue about UNIX (although I wish I did) so can someone explain ho they have managed to edit the host file in OSX?? Is there a way to do without using UNIX Command?

    Cheers
    Stu

  2. #2

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    If you have BBEdit you can do it, but since usually only us developers use BBEdit I am going to assume that you do not have it.. What I can do is walk you through the process.

    1. Open up your terminal application
    2. Type in "sudo pico /etc/hosts"
    3. Type in your administration password
    4. Use your arrow keys to maneuver the cursor and type in whatever entries you are wanting to put in your hosts file
    5. Once you are done, hit Control-o
    6. and then hit Control-x

    You are done! Then you can restart your computer and that should take care of whatever you were doing

  3. #3
    stu_69
    Guest
    Thanks for the reply mate. I found a Text editor called "TextWrangler" which allowed me to do it.

    Cheers
    stu

  4. #4

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    Quote Originally Posted by Murlyn
    If you have BBEdit you can do it, but since usually only us developers use BBEdit I am going to assume that you do not have it.. What I can do is walk you through the process.

    1. Open up your terminal application
    2. Type in "sudo pico /etc/hosts"
    3. Type in your administration password
    4. Use your arrow keys to maneuver the cursor and type in whatever entries you are wanting to put in your hosts file
    5. Once you are done, hit Control-o
    6. and then hit Control-x

    You are done! Then you can restart your computer and that should take care of whatever you were doing
    A pico man huh, and I thought you were a Unix man. A real Unix man uses vi. lol :p

  5. #5

    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    *laugh* no I was and still am definitely a mac man I used to be a dos man.. and I've used vi, but it's just too much of a pain in the butt!

  6. #6
    nko
    Guest
    I was thinking the same thing last night on my Linux box . nano- now THERE's a REAL (UNIX) man (geek)'s editor .


    I think it'll show what an expert I am to mention that my favorite feature of Vi is that by default it only scrolls one line at a time. Vim also remembers where you left off on a document for when you next open it. Maybe my liking for these tyes of things can help to explain why I like OS X

  7. #7

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    I have been using vi for many, many years. So it is second nature to me.

  8. #8

    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    I used to be a pico man, which is basically nano. Now I use vi exclusively. I like vi mainly because it is also your command line editor. So you just learn vi once, and it functions in 2 places

    Totally off topic, BTW.
    Emrys
    Community Administrator / Moderator
    MAC-FORUMS.COM - The Ultimate Source For Your Mac!

  9. #9
    nko
    Guest
    Speaking of off topic, I think you guys helped this other guy already, and now we're all just standing around chit-chatting about ramblings on that happen after the deal we were here for. I think this is the part where we all usually kinda get quiet, someone says, "yeah...", we all start looking around in odd directions, and then one person says, "well, I guess that's it. Later!" and we all disperse.


    *pause*

    .....

    Yeaaaah.... welp, I guess that's it. I'll be in my office if you need me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Host file
    By bubba2012 in forum Switcher Hangout
    Replies: 4
    Last Post: 05-01-2012, 08:08 AM
  2. Host File
    By barry in forum Switcher Hangout
    Replies: 2
    Last Post: 03-30-2009, 12:49 PM
  3. Host File
    By egandolfi in forum Internet, Networking, and Wireless
    Replies: 5
    Last Post: 01-26-2007, 12:06 AM
  4. editing hosts file on OSx
    By blackwaterdev in forum Switcher Hangout
    Replies: 2
    Last Post: 02-24-2005, 09:51 PM
  5. Host file from Hell
    By CannonFotter in forum Running Windows (or anything else) on your Mac
    Replies: 4
    Last Post: 01-21-2004, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •