mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-04 18:55:36 +00:00
Update cheatsheets
This commit is contained in:
25
hostess
Normal file
25
hostess
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# hostess
|
||||
|
||||
> Manage the `/etc/hosts` file.
|
||||
> More information: <https://github.com/cbednarski/hostess>.
|
||||
|
||||
- List domains, target IP addresses and on/off status:
|
||||
|
||||
`hostess list`
|
||||
|
||||
- Add a domain pointing to your machine to your hosts file:
|
||||
|
||||
`hostess add {{local.example.com}} {{127.0.0.1}}`
|
||||
|
||||
- Remove a domain from your hosts file:
|
||||
|
||||
`hostess del {{local.example.com}}`
|
||||
|
||||
- Disable a domain (but don't remove it):
|
||||
|
||||
`hostess off {{local.example.com}}`
|
||||
Reference in New Issue
Block a user