Prints out a Network Information Services (NIS) map.
To Display the Network Information Services Database
/usr/bin/ypcat [ -k ] [ -t ] [ -d DomainName ] MapName
To Display the Nickname Translation Table
/usr/bin/ypcat -x
The ypcat command prints out the Network Information Services (NIS) map you specify with the MapName parameter. You can specify either a map name or a map nickname. Because the ypcat command uses the NIS service, you do not need to specify a server.
Item | Description |
---|---|
-k | Displays the keys for those maps in which the values are null or for which the key is not part of the value. (None of the maps derived from files that have an ASCII version in the /etc directory fall into this class.) |
-t | Indicates that the name specified by the MapName parameter is not a nickname. This flag causes the ypcat command to bypass the nickname translation table and search only for the map specified by the MapName parameter. |
-d DomainName | Searches the specified domain for the specified map. |
-x | Displays the nickname translation table. This table lists the map nicknames the command knows of and indicates the map name (as specified by the MapName parameter) associated with each nickname. |
ypcat passwd
In this example, passwd is
the nickname for the passwd.byname map.ypcat -t passwd
In this example,
the ypcat command bypasses any maps with the nickname of passwd and
searches for a map with the full name of passwd.ypcat -d polaris passwd
In
this example, the ypcat command locates the map named passwd in
the domain named polaris.ypcat -x
In this example, the ypcat command
displays a list of map nicknames and their associated map names.