Skip to content

A lightweight tool to manage hosts by switch or merge hosts files to /etc/hosts

Notifications You must be signed in to change notification settings

thiled/hosts-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

hosts-switcher

A lightweight hosts management script by switch or merge hosts files to /etc/hosts

Initialize

  • create a folder to manage hosts files
  • put the hosts-switcher into the folder
  • chmod +x hosts-swicher

Usage

  1. create hosts files in the hosts management folder created above.
  2. apply hosts files
  • switch single hosts file to /etc/hosts
sudo ./hosts-swicher hostsFile1
  • merge multipule hosts files to /etc/hosts
sudo ./hosts-swicher hostsFile1 hostsFile2 [hostsFile3...]
  1. the currently applied hosts files will be recorded in the host-switcher.log file.

About

A lightweight tool to manage hosts by switch or merge hosts files to /etc/hosts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages