Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bngaard

macrumors newbie
Original poster
Jul 7, 2011
2
0
Hi,

I'm following a guide that should change some files and open some ports on the computer, but i the copy/paste guide says i should use TextEdit.. I've deleted that by accident a few weeks ago, and now im wondering if its possible to change the following code so that it will open in coda or word?

6.) Open the 'Terminal' application and paste in the following:

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts

7.) Enter your password and a text document will pop open
8.) Paste in the following between 127.0.0.1 localhost and 255.255.255.255 broadcasthost


Thanks in advance :)
 
Just use coda

open the file (you'll have to check the show hidden files option)

ignore the warning about read only

make your changes

save and then enter your admin password when prompted
 
Thanks for replying,

However i'm at copy/paste level so far regarding macs, so the file im looking for i dont know where to find.. or what im really looking either.

all i know is when i use that terminal code some document would appear and i should be able to add data to it..
 
The file you are looking for is...

/etc/hosts

use coda like I said and click on show hidden files in the dialogue box.
click on your hard drive name so you are at the top level directory then find 'etc' and then 'hosts'

alternatively if you really want to follow that guide, just change the occurences of 'TextEdit' to 'Coda'
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.