The Linux Command 'ypcat'

Graphic image of computer code with bands of blue and purple color

Negative Space / Pexels / CC0

ypcat prints the values of all keys from the NIS database specified by mapname, which may be a map name or a map nickname.  

ypcat [ -kt ] [ -d domain ] [ -h hostname ] mapname
ypcat -x

Options for Using ypcat

-d domain

Specify a domain other than the default domain as returned by domainname(1).

-h hostname

Specify a hostname other than the default one as found by ypbind(8).


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


This option inhibits map nickname translation.


Display the map nickname translation table.