This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# copy from https://gist.github.com/irazasyed/a7b0a079e7727a4315b9 | |
# modifyed for ubuntu 16.04 | |
# commandline call: sudo ./manage-etc-hosts.sh addhost yourhost | |
# PATH TO YOUR HOSTS FILE | |
ETC_HOSTS=/etc/hosts | |
# DEFAULT IP FOR HOSTNAME |