hostsed1
Simple cli tool for hosts file edition
Usage
hostsed [OPTION] ...
[ENTRY] ...
Overview
This manual page documents the hostsed CLI tool. Running hostsed without arguments
will return the content of /etc/hosts file to STDOUT.
Options
-
-h -
show help message and exit
-
-f FILE -
location of hosts file, default /etc/hosts
Commands
add IPADDRESS HOSTNAME1 [HOSTNAME2...]
|
add entry to hosts file |
|---|---|
rm, del, delete, remove IPADDRESS HOSTNAME
|
remove entry from hosts file |
drop IPADDRESS_OR_HOSTNAME
|
Drop lines with specified ip or hostname from hosts file |
docker CONTAINERNAME
|
show docker cointainer IP address of the given name |
Comment
This manual page was written by Josue Ortega <[email protected]> for the Debian
Operative System and can be used by others.
Releases
3 releases since Debian 11 (Bullseye); the text changed 1 time.