Web site layout - Inside Linux The ypcat Command The ypcat command

Inside Linux The ypcat Command The ypcat command is used to print the values for all keys in an NIS database. The usage for the command is as follows: ypcat [ -kt ] [ -d domain ] mapname ypcat -x The ypcat command is used to print the values for all keys from the NIS database specified by the identified mapname. The mapname identified can be a map name or a map nickname. The options available to the ypcat command are listed in Table 11.7. Table 11.7. Options for the ypcat Command Option Description -d domain Identifies a domain other than the default. -k Displays the map keys. Useful with maps in which the values are null or the key does not exist as part of the value. -t Inhibits map nickname translation. -x Displays the map nickname translation table and exits. The ypmatch Command The ypmatch command is used to print the values of one or more keys from an NIS map. The usage for the ypmatch command follows: ypmatch [ -kt ] [ -d domain ] key … mapname ypmatch -x The ypmatch command prints the values of one or more keys from the NIS database. This is specified by the identified mapname. The mapname may be a map name or a map nickname. The options available to the ypmatch command are shown in Table 11.8. Table 11.8. Options for the ypmatch Command Option Description -d domain Specifies a domain other than the default. -k Displays the map keys. Useful with maps in which the values are null or the key does not exist as part of the value. -t Inhibits map nickname translation. -x Displays the map nickname translation table and exits. The yppoll Command The yppoll command returns the version and master server of an NIS map. The usage for the yppoll command is shown in the following: yppoll [ -h host ] [ -d domain ] mapname yppoll Two options are available for the yppoll command. These options are as follows: -h host. Ask the NIS server for information about mapname. If the host is not identified, the server polled will be the default server returned by the ypwhich command. -d domain. Specify a domain other than the default. page 207
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.

Leave a Reply