Skip to Main content

tuyen hosts

Manage the system hosts file (get, set, find, remove, list entries)

Usage

tuyen hosts <COMMAND>

Options

-h, --help

Print help.

Commands

get

Look up the IP address for a hostname in the hosts file

find

Search the hosts file by IP address, hostname, or both
Aliases: search

set

Add or update a hostname → IP mapping in the hosts file
Aliases: add

remove

Remove a hostname entry from the hosts file
Aliases: rm, delete, del

list

Display all entries in the hosts file
Aliases: ls, show