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

vexorg

macrumors 6502a
Original poster
Aug 4, 2009
622
53
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.
 

MacUser2525

Suspended
Mar 17, 2007
2,097
377
Canada
All the interesting stuff is hidden to protect the "average" mac user, and nano is a bit basic.

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
 

Nermal

Moderator
Staff member
Dec 7, 2002
20,644
4,044
New Zealand
"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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.