Block unwanted advertisements with /etc/hosts file on Linux

Now we will make the shell script.

vi /root/

Fill the file with the following:
cd /tmp
rm /etc/hosts
mv hosts.txt /etc/hosts
cat ~/.etchosts >> /etc/hosts

Now we have to make sure the script is executable: 
chmod +x
For Windows check this :


Popular posts from this blog

How To Make IoT Messaging with BashShell

How To Make IoT Tweet with Python