Skip to content

Instantly share code, notes, and snippets.

View somdey's full-sized avatar
💭
I may be slow to respond.

Somenath somdey

💭
I may be slow to respond.
View GitHub Profile
@irazasyed
irazasyed / manage-etc-hosts.sh
Created March 7, 2015 09:16
Bash Script to Manage /etc/hosts file for adding/removing hostnames.
#!/bin/sh
# PATH TO YOUR HOSTS FILE
ETC_HOSTS=/etc/hosts
# DEFAULT IP FOR HOSTNAME
IP="127.0.0.1"
# Hostname to add/remove.
HOSTNAME=$1