petak, 20. srpnja 2018.

How to Edit Hosts File Using Terminal on Mac




How to Edit Hosts File Using Terminal on Mac

Step #1. Launch Finder app on your Mac and then click on Applications from the sidebar. Next, double-click on Utilities. Then, double-click on Terminal as well.

Or simply search Terminal in the Spotlight.



Step #2. Now, enter the command: sudo nano /etc/hosts and then hit return.

Step #3. Next up, enter the administrator password and then press return.



Step #4. Nano text editor will appear. Now, to add a new device or domain, simply move the cursor using the arrow keys and position it after the text in the window.



While mapping an IP address on your local network to a domain, type in IP address, press ‘Tab’ on Keyboard and enter the domain name. (Make sure to enter all the possible combinations i.e. www.facebook.com and facebook.com)


To keep your computer away from certain sites, make sure to use “127.0.0.1.”


127.0.0.1 will default to the…


127.0.0.1 will default to the local machine even if it has been assigned a different IP address by its router.



Step #5. Next up, you need to hold down the control and O keys to save the file.

Then, use control and X to exit.

Most importantly, you need to flush the DNS. To do so, In the command line, enter sudo killall -HUP mDNSResponder Then, press return. Enter your system password.




Jihosoft iPhone Backup Extractor Extract and recover all types of data from iPhone backup files, such as camera roll photos, videos, SMS, contacts, reminders, WhatsApp, and etc.

Gihosoft Free iPhone Data Recovery is a professional iPhone Data Recovery software to get back all your lost text message, photo, video, call history, note, contact and more from iPhone/iPad/iPod Touch.


Nema komentara:

Objavi komentar

Avoid The Dreaded Dead Battery With This Affordable Power Bank [Deals Hub]

Our smartphones are our lifelines these days, so it’s really important to make sure they don’t run out of battery. Power banks are the perfe...