Skip to content

thecodefreak/hosts-adder-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Linux Hosts Adder

Table of Contents

About

A very simple tool to manage your hosts file

Installing

It's nothing to worry. Just execute the below command.

sudo install hostsctl /usr/local/bin

OR

chmod +x hostsctl
sudo cp hostsctl /usr/local/bin

Usage

Adding a host

hostsctl -a <ip> <hostname>

Removing a host

hostsctl -rh <hostname>

Removing an IP

hostsctl -ri <ip>

Restore last change

You know sometimes we regert the things we do 🤭

hostsctl --restore

Releases

No releases published

Packages

No packages published

Languages