A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter Resume Hire Me Keybase LinkedIn Stackoverflow

How to Edit the Hosts File on Linux


Edit Hosts File Using Terminal

  • Open Terminal (Ctrl + Alt + T)
  • Run following command
$ sudo vim /etc/hosts
# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##	localhost	broadcasthost
::1             localhost   miteshshah.github.io

NOTE!: If you don’t know how to use VIM, You can check VIM - An Advance Text Editor

You Might Also Like

  1. How to Edit the Hosts File on Mac OS
  2. How to Access Staging Website Without Editing Hosts Files or DNS

Post Navigation