Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 705 Bytes

README.md

File metadata and controls

52 lines (35 loc) · 705 Bytes

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