How To Use Etc Hosts
Adding the host name domain name to the etc hosts file.
How to use etc hosts. Edit using the correct format and save the hosts file with windows notepad. To view files in etc folder use the down arrow to switch to all files view. Go to the real hosts file location and rename it. If it is at the end of the sentence. A good way to test whether etc.
192 168 56 1 ubuntu tecmint lan 192 168 56 10 centos tecmint lan next test if everything is working well as expected using the ping command from host 1 you can ping host 2 using it domain name like so. To access the hosts file in windows 7 you can use the following command in the run line to open notepad and the file. Once the files are visible select hosts file and click on the open button. And et cetera is redundant. In open file dialogue box type c windows system32 drivers etc as the file name entry.
Create a new hosts file somewhere like the desktop or documents. Don t use a comma after etc. 2 after that in the command prompt window type the below commands one after another to go to the hosts file directory and open the hosts file in the notepad program. Copy and paste the new hosts file to that location accepting the permissions popup. Notepad c windows system32 drivers etc hosts once notepad is open you can edit the file.
Is appropriate is to substitute and so on or and so forth. Alternatively you can navigate to c windows system32 drivers etc using the left pane menu. Follow the screenshot for better understanding. If those synonyms make sense you can use etc. 1 on the windows 10 computer right click on the start menu and select command prompt admin.
Remember et means and. You should never use and et cetera. Sudo vi etc hosts append. To add our example we will first need to open the hosts file with vi or your favorite editor.