From e6ee93da47fadc3c10728c1e618a4890bf0ad720 Mon Sep 17 00:00:00 2001 From: William Melody Date: Thu, 19 Mar 2015 14:43:32 -0700 Subject: [PATCH] Add command information to Readme --- Readme.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Readme.md b/Readme.md index 7e81c0c..2da03a9 100644 --- a/Readme.md +++ b/Readme.md @@ -33,6 +33,45 @@ For help with a particular command, try: hosts help +## Commands + +###### `hosts add ` + +Add a given IP address and hostname pair. + +###### `hosts remove ( | | ) [--force]` + +Remove one or more disabled records based on a given IP address, hostname, +or search string. + +###### `hosts list [enabled | disabled | ]` + +List the existing IP / hostname pairs, optionally limited to a specified +state. When provided with a seach string, all matching enabled records will +be printed. + +###### `hosts show ( | | )` + +Print entries matching a given IP address, hostname, or search string. + +###### `hosts disable ( | | )` + +Disable one or more records based on a given ip address, hostname, or +search string. + +###### `hosts enable ( | | )` + +Enable one or more disabled records based on a given ip address, hostname, +or search string. + +###### `hosts edit` + +Open the hosts file (/etc/hosts) file in your editor. + +###### `hosts file` + +Print the entire contents of the /etc/hosts file. + ## Why Although it's easy to just edit the hosts file manually, it's nice to