Categories
Fixing Stuff Mac Samuel

Updating Mac Hosts File

  1. open iTerm and type sudo nano /etc/hosts
  2. enter in password
  3. Type in the TCP/IP address
  4. Press the Tab key
  5. Type the domain name
  6. Save the file by pressing Ctrl + O (zero)
  7. Exit with Ctrl + X

— Update —

Just add this to your .aliases file so you can open up terminal and type hosts like our buddy Jeffry 🙂

alias hosts=”sudo nano /etc/hosts”