Open in coda through terminal

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

  1. bngaard macrumors newbie

    Jul 7, 2011

    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/ /etc/hosts

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

    Thanks in advance :)
  2. psxguru macrumors 6502a

    May 19, 2006
    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

    Jul 7, 2011
    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

    May 19, 2006
    The file you are looking for is...


    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