Recommended Posts

On Mac OS X Snow Leopard and below I used to be able to access the Hosts file using this command:

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts

However, after installing Mac OS X Lion today I can't anymore. Any suggestions how to open and edit the file? Thanks in advance.

Link to comment
https://www.neowin.net/forum/topic/1013632-access-hosts-file-mac-os-x-lion/
Share on other sites

On Mac OS X Snow Leopard and below I used to be able to access the Hosts file using this command:

sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts

However, after installing Mac OS X Lion today I can't anymore. Any suggestions how to open and edit the file? Thanks in advance.

I always just use TextWrangler to edit it. Sudo worked for me though (not using TextEdit.app).

Still doesn't really explain why he can't use TextMate to edit the file anymore...?

TextEdit, not TextMate. You can still use TextMate just fine. The problem probably has something to do with sandboxing in Lion.

  • 4 months later...

There's an application called Gas Mask that can edit the Hosts file on the Mac quiet easily - even allow for subscriptions to anti-malware and adblock Hosts files from this site: http://winhelp2002.mvps.org/hosts.htm.

Gas Mask is available here http://www.clockwise.ee/gasmask - it also has a Google Code page here: http://code.google.com/p/gmask/

There's an application called Gas Mask that can edit the Hosts file on the Mac quiet easily - even allow for subscriptions to anti-malware and adblock Hosts files from this site: http://winhelp2002.mvps.org/hosts.htm.

Gas Mask is available here http://www.clockwise.ee/gasmask - it also has a Google Code page here: http://code.google.com/p/gmask/

I've just realized that I 'double recommended' the Gas Mask application. An oversight on my part.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • No updated SSD capacity, no updated specs (not surprised tbf), just nostalgia baiting! Bring back the boot sequence and the UI as an easter egg!
    • Why? It will just cost so much more and make you PC poor and they become PC rich off your calamities! “Just because you can” isn’t a flex either!.
    • Microsoft confirms a new, useful Teams' app is coming very soon by Sayan Sen In the modern digital workspace meeting recordings and summaries are very commonplace, still finding the right recap later can be surprisingly difficult. To address that inconvenience Microsoft is working on a new dedicated meeting recap application designed to bring all meeting recaps into a single, centralized location. In a recent announcement on its Microsoft 365 roadmap website, the company has confirmed the new applet and has explained how the new experience will work and why it believes it can help users stay on top of discussions without having to search through multiple chats, calendars, or files. For those unfamiliar, meeting recaps provide a summary of key discussions, decisions, action items, and other relevant information generated after a meeting ends. They are intended to help participants revisit important points while also allowing those who missed the meeting to quickly catch up on what happened. Traditionally locating older recaps could require users to navigate through various conversations or meeting histories. The new meeting recap app aims to simplify that process by gathering all available recaps into one dedicated hub. According to Microsoft, this should make it easier to browse past meetings, review outcomes, and stay informed about ongoing projects and discussions. One notable feature of the applet is the addition of quick filters which are meant to allow users to instantly narrow down the list of available recaps and surface specific meetings without manually searching through extensive records. Audio recap is also there. If you're wondering how long these recaps will last before self-expiring, the app will provide access to meeting recaps from the past 30 days or approximately one month. You can view the feature entry here on the official Microsoft 365 (M365) website under roadmap ID 564614. Its rollout is set to begin this month (June 2026). Do keep in mind though that new feature rollouts often get delayed.
    • Does it have couch co-op is the question I have here.
  • Recent Achievements

    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
    • Dedicated
      Conjor earned a badge
      Dedicated
    • Week One Done
      Windows Guy earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      492
    2. 2
      PsYcHoKiLLa
      248
    3. 3
      Steven P.
      71
    4. 4
      +Edouard
      70
    5. 5
      ATLien_0
      67
  • Tell a friend

    Love Neowin? Tell a friend!