How to Update Host File at MacOS

2022/11/31 min read
bookmark this
Responsive image


This is simple memo of how to change host file at MacOS.


Type below command line at a terminal via MacOS.

nano /etc/hosts

Once opened the host file, add new line similar to below. This is tell your current MacOS, whenever you type the http://my.local.hostname will go to your or http:localhost. my.local.hostname