How to edit a Mac server file in / etc / hosts with TextEdit on Mac OS X.
This border on to changing / etc / hosts with TextEdit works with any translation of Mac OS X. For Mac users running MacOS X 10.11 or late, you must first disable SIP protection, otherwise the Mac / etc / hosts file will be locked when you try to access it from TextEdit.
- Close TextEdit if it is currently open
- Launch the Terminal application in Mac OS X, located in the / Applications / Utilities / directory
- Type the following command exactly to open the Mac host file in the TextEdit GUI
- Click go back and type the Mac OS X administrator password when prompted to authenticate to boot through sudo
- The / Etc / hosts file is launched in TextEdit as a plain text file, where it can be edited and modified as needed when you’re done, choose File> Save, or press Command + S as usual to save the changes to the host document *
- Exit TextEdit, and then exit the terminal when you are finished
sudo open -a TextEdit / etc / hosts
* If the host file appears locked and does not save changes even though it was started through sudo, it is credibly because you did not disable SIP, as mentioned in the introduction. You can disable SIP in Mac OS X by following these instructions, which will require you to restart your Mac. This is essential for modern versions of Mac OS X, although you can edit the master of ceremonies file on the command line with nano, as described here, without adjusting SIP. It is a good practice to make a duplicate of the host file so that if you break something, you can easily fix it, tied though we have the original default option host file hera if you need to restore it. It is besides a good mind to set the text mode as the default for TextEdit. If you credibly want to clear your DNS hoard after editing your server charge, here are instructions for flushing DNS in Mac OS X El Capitan and mod versions of Mac OS, and how to do the lapp in former releases. Users can besides customize your Mac OS X ’ s / etc / hosts files TextWrangler, BBEdit, or another third-party application. The antic is largely the same as Editing Text, still requires the use of sudo, but by changing the pin down application name as follows. To open / Etc / hosts with TextWrangler : sudo open -a TextWrangler / etc / hosts
Or by launching / etc / hosts into Bbedit : sudo receptive -a BBEdit / etc / hosts Although the above approaches work on all mod versions of Mac OS X, earlier versions of Mac OS X can besides start a TextEdit binary with hosts directly from the command occupation with the follow syntax : sudo ./Applications/TextEdit.app/Contents/MacOS/TextEdit / etc / hosts however, this method acting does not work in recent releases, so you should rely on an open command alternatively. Do you know another flim-flam to easily edit a Mac server charge via TextEdit or another GUI application ? Let us know in the comments .
Benefits: The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit
- The The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit guide is free to read.
- We help many internet users follow up with interest in a convenient manner.
- The price of the The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit guide is free.
FAQ: The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit
Guide about The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit
In this guide, I told you about the The Mac Hosts File : How to Modify /etc/hosts in Mac OS X with TextEdit.
How this Guide helping you?
In this lead, I discuss about the The Mac Hosts File : How to Modify /etc/hosts in Mac OS X with TextEdit, which is very helpful.
What are the supported devices for this guide?
Apple Devices lone.
What are the supported Operating system?
macintosh OS or iOS
Final note: The Mac Hosts File: How to Modify /etc/hosts in Mac OS X with TextEdit
If you have any queries regards the The Mac Hosts File : How to Modify /etc/hosts in Mac OS X with TextEdit, then please ask us through the comment section below or directly contact us.
Education: This guide or tutorial is just for educational purposes.
Misinformation: If you want to correct any misinformation about the guide “ The Mac Hosts File : How to Modify /etc/hosts in Mac OS X with TextEdit ”, then kindly contact us.
Want to add an alternate method : If anyone wants to add more methods to the guide The Mac Hosts File : How to Modify /etc/hosts in Mac OS X with TextEdit, then kindly contact us.
Our Contact : kindly use our reach page regards any help.