Viona W.
1min Read

Edit Hostfile Windows/Mac

Edit hostfile on Windows or Mac

Windows – Edit Hostfile

To edit the host file on a Windows system, you can use the following steps:

  1. Open the Start menu and search for “Notepad”
  2. Right-click on Notepad and select “Run as administrator”
  3. In Notepad, go to File > Open and navigate to the folder C:\Windows\System32\drivers\etc
  4. Select “All Files” from the drop-down menu in the bottom right corner of the open dialog
  5. Open the “hosts” file
  6. Make your desired changes to the file, then save the file by going to File > Save

Mac/Linux

On a Mac or Linux system, you will need to use the Terminal to open and edit the host file.

  1. Open terminal
  2. Type “sudo nano /etc/hosts” and press enter
  3. Type in your admin password when prompted
  4. Make your desired changes to the file
  5. Save the file by pressing “CTRL+O”, then exit by pressing “CTRL+X”

Please note that editing the host file can cause connectivity issues if not done correctly, so it is important to be careful when making changes and to keep a backup copy of the original file.


The Author

Viona W.

With over 7 years of experience crafting tech content, Viona W is a valuable asset to the HOSTAFRICA editorial team. Her skills extend beyond writing, as she also boasts experience in public relations and cultivating relationships with media outlets. This makes Viona adept at ensuring HOSTAFRICA's achievements and initiatives gain well-deserved public recognition. When Viona isn't immersed in the world of tech, she enjoys seeking out new experiences in nature and the power of storytelling to create positive change.

More posts from Viona