---
name: "ypmatch"
section: "1"
platform: "linux"
package: "yp-tools"
version: "4.2.3-4+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux", "freebsd", "openbsd"]
url: "https://new.carta.tech/ypmatch"
---

# ypmatch(1)

print the values of one or more keys from a NIS map

## NAME

ypmatch - print the values of one or more keys from a NIS map

## SYNOPSIS

**ypmatch** \[ **-kt** \] \[ **-d** *domain* \] *key ... mapname*\
 **ypmatch** **-x**

## DESCRIPTION

**ypmatch** prints the values of one or more keys from the NIS database specified by mapname, which may be a map name or a map nickname.

## OPTIONS

- **-d** *domain*

  Specify a domain other than the default domain as returned by [**domainname**(8)](/domainname/8.md).

- **-k**

  Display map keys. This option is useful with maps in which the values are null or the key is not part of the value.

- **-t**

  This option inhibits map nickname translation.

- **-x**

  Display the map nickname translation table.

## FILES

- **/var/yp/nicknames**

  map nickname translation table.

## SEE ALSO

[**domainname**(8)](/domainname/8.md), [**nicknames**(5)](/nicknames/5.md), [**ypbind**(8)](/ypbind/8.md), [**ypcat**(1)](/ypcat/1.md), [**yppoll**(8)](/yppoll/8.md), [**ypserv**(8)](/ypserv/8.md), [**ypset**(8)](/ypset/8.md), [**ypwhich**(1)](/ypwhich/1.md)

## AUTHOR

**ypmatch** is part of the **yp-tools** package, which was written by Thorsten Kukuk \<kukuk@linux-nis.org\>.
