ypcat(NC)


ypcat -- print values in an NIS database

Syntax

ypcat [ -k ] [ -t ] [ -d domainname ] mname

ypcat -x

Description

ypcat prints out values in a Network Information Service (NIS) map specified by mname, which may be either a mapname or a map nickname. Since ypcat uses the NIS network services, no NIS server is specified.

To look at the network-wide password database, passwd.byname (with the nickname passwd), type:

ypcat passwd

Refer to ypfiles(NF) and ypserv(NADM) for an overview of the Network Information Service.

Options


-k
display the keys for those maps in which the values are null or the key is not part of the value. (None of the maps derived from files that have an ASCII version in /etc fall into this class.)

-t
inhibit translation of mname to mapname. For example, ypcat -t passwd will fail because there is no map named passwd, whereas ypcat passwd will be translated to ypcat passwd.byname.

-d
specify a domain other than the default domain. The default domain is returned by domainname(NC).

-x
display the map nickname table. This lists the nicknames (mnames) the command knows of and indicates the mapname associated with each nickname.

See also

domainname(NC), ypfiles(NF), ypmatch(NC), ypserv(NADM)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005