Open in coda through terminal

Discussion in 'Mac Apps and Mac App Store' started by bngaard, Jul 7, 2011.

  1. bngaard macrumors newbie

    Joined:
    Jul 7, 2011
    #1
    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 :)
     
  2. psxguru macrumors 6502a

    Joined:
    May 19, 2006
    #2
    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
     
  3. bngaard thread starter macrumors newbie

    Joined:
    Jul 7, 2011
    #3
    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..
     
  4. psxguru macrumors 6502a

    Joined:
    May 19, 2006
    #4
    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'
     

Share This Page