New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

editing the host file in OSX???


Post Reply New Thread Subscribe

 
Thread Tools
stu_69
Guest
 
Posts: n/a

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
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
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
QUOTE Thanks
stu_69
Guest
 
Posts: n/a

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

Cheers
stu
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
*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!
QUOTE Thanks
nko
Guest
 
Posts: n/a

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
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
I have been using vi for many, many years. So it is second nature to me.
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
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!
QUOTE Thanks
nko
Guest
 
Posts: n/a

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
QUOTE Thanks

Post Reply New Thread Subscribe


« MAC OS X Fonts | temperature monitor »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How can i convert a non quick time file??? SuperShaun Archival Forum 1 10-07-2003 03:35 PM
File Permissions in OSX fosdyke Apple Desktops 0 09-24-2003 09:01 AM

All times are GMT -4. The time now is 12:11 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?