Skip to Main content

tuyen hosts

Manage the system hosts file entries for getting, setting, finding, removing, and listing hostname mappings.

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 to IP address mapping in the hosts file.
  • Aliases: add.

remove

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

list

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