You can search for Terminal using Spotlight or by selecting it in Finder.
- Open a Finder window.
Select Applications from the sidebar.
- Double-click on Utilities.
In the Terminal window, you will need to enter a command to open the Nano text editor. You will need your administrator password, as well:
- Type sudo nano /etc/hosts and then hit return.
Enter your administrator password and then hit return.
You're now in the Nano text editor. You should see something that looks like this: