Networking – How to Edit /etc/hosts File


How to you edit the /etc/hosts file? My father put every video site on the internet on and he won't tell me how to get rid of it. I need an answer because tinypic and youtube are on it!

Best Answer

You need open the file as root:

Open the terminal CTRL + ALT + T.

sudo nano /etc/hosts (You need enter your user password)

after, it will open the file to edit, use CTRL + X to close and save the file.

Good luck!

Related Question