how do you enter a filename to open in textedit?

Discussion in 'OS X Yosemite (10.10)' started by vexorg, Nov 21, 2015.

  1. vexorg macrumors 6502a

    Joined:
    Aug 4, 2009
    #1
    Is there some way to enter a filename when opening in textedit?

    The hidden or system files for example, how to open with textedit?

    Like ~/.ssh/known_hosts , or /etc/hosts . Windows will open hidden files or folders if you enter the path and filename into the open box.

    All the interesting stuff is hidden to protect the "average" mac user, and nano is a bit basic.
     
  2. MacUser2525 macrumors 68000

    MacUser2525

    Joined:
    Mar 17, 2007
    Location:
    Canada
    #2
    Use the show hidden files option in Terminal to have at least the ssh option show up not sure on the system files if that works for them. You will want to make sure when saving those files opened in it that you do not get any of that rich text junked saved or you will be editing or restoring the file again to get it working once more. In short nano is your best option it will just do the job properly.

    http://lifehacker.com/188892/show-hidden-files-in-finder
     
  3. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #3
    "sudo open /etc/hosts" should do it.

    Edit: Hmm, the file is still read-only even with sudo. I guess it doesn't extend past the terminal.
     

Share This Page