hostsed(1)

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.

  1. 11
  2. 12–13

Author

Written by Li <[email protected]>

Reporting bugs

Report bugs to https://github.com/socrateslee/hostsed/issues

License

The MIT License (MIT)

From hostsed 0.4.0-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.