2015-03-17 00:05:46 +00:00
|
|
|
# Hosts
|
|
|
|
|
2015-03-17 03:13:19 +00:00
|
|
|
A command line program with shortcuts for managing hosts file entries.
|
2015-03-17 00:05:46 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Usage:
|
2015-03-17 00:26:58 +00:00
|
|
|
hosts add <ip> <hostname>
|
|
|
|
hosts remove <hostname>
|
2015-03-19 00:04:39 +00:00
|
|
|
hosts list [enabled | disabled | <search string>]
|
2015-03-18 23:07:49 +00:00
|
|
|
hosts show ( <ip> | <hostname> | <search string> )
|
2015-03-18 22:49:21 +00:00
|
|
|
hosts disable ( <ip> | <hostname> | <search term> )
|
|
|
|
hosts enable ( <ip> | <hostname> | <search term> )
|
2015-03-17 00:38:06 +00:00
|
|
|
hosts edit
|
2015-03-17 02:56:16 +00:00
|
|
|
hosts file
|
2015-03-17 00:19:17 +00:00
|
|
|
|
2015-03-17 03:13:19 +00:00
|
|
|
For full usage, run:
|
|
|
|
|
|
|
|
hosts help
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
hosts help <command name>
|
|
|
|
|
2015-03-17 00:19:17 +00:00
|
|
|
## Acknowledgements
|
|
|
|
|
|
|
|
Based on prior work by:
|
|
|
|
|
|
|
|
- https://github.com/nddrylliog
|
|
|
|
- https://gist.github.com/nddrylliog/1368532
|
|
|
|
- https://github.com/dfeyer
|
|
|
|
- https://gist.github.com/dfeyer/1369760
|
|
|
|
|
|
|
|
Original idea and interface (since changed) via:
|
|
|
|
|
|
|
|
https://github.com/macmade/host-manager
|