Machosts shows exec, what is the reason and how to get back to normal
This should be because the subject’s Mac is treating the hosts file as an executable. You can try the following two ways:
Open the terminal, type
sudo chmod 644 /etc/hosts and click enter to remove the executable permissions of the hosts file (you need to enter the administrator password, which is not visible at all when you enter it). If the terminal doesn’t give you any errors, double-clicking on the hosts file should open it in a text editor.
Or just type
open -a TextEdit /etc/hosts and hit enter to open the file directly in a text editor.
hosts how to restore defaults (hosts file restore defaults)
Hello, I’ll answer the question about hosts how to restore defaults, hosts file restore defaults I believe that many of our partners still do not know, now let’s take a look at it! 1, meaning that the restoration of the hosts text…
Hello, I’ll answer the question about how to restore hosts default, hosts file restore default believe many small partners still do not know, now let’s take a look at it!
1, means to restore the hosts file at the very beginning of the state, that is, in the absence of any modification done when the state Hosts is a system file without extension, you can use Notepad and other tools to open.
2. Its role is to establish an associated “database” of commonly used domain names and their corresponding IP addresses, so that when a user enters a URL in a browser that requires login, the system will first automatically look for the corresponding IP address in the Hosts file.
3. Once found, the system will immediately open the corresponding web page, if not found.
4. The system then submits the URL to a DNS server to resolve the IP address.
The hosts file was deleted by me! What will be the effect? How can I recover it?
The hosts file is under C:\WINDOWS\system32\drivers\etc.