I have opened my hosts file using many ways many times.
But I find open hosts file with TextEdit is just the easiest for those who aren’t fan of using Terminal. I also wrote a tutorial of TextEdit and Time Machine here. If you want to use the Terminal, you can checkout OSXdaily tutorial.
I have posted how to open this file on Windows OS, and now I want to show you how to do it on a Mac.