ypcat(1) on Solnix vs Linux and the BSDs

On Solnix, ypcat is the illumos ypcat at /usr/bin/ypcat. It prints the values of a NIS map. Compared with the BSDs, it has no -t to turn off nickname translation, and its -x is allowed alongside a map name. There is no Linux counterpart in the bundle.

What Solnix runs

A default Solnix system runs the illumos ypcat at /usr/bin/ypcat. No other variants are shipped. The Solnix page is dated January 23, 1995 and does not describe an exit status or any environment variables.

Differences

Compared withTopicWhat differs
FreeBSD, OpenBSD, NetBSD-t missingFreeBSD, OpenBSD and NetBSD ypcat have -t, which stops map nicknames being translated to map names. The Solnix SYNOPSIS and OPTIONS list no -t, so the page documents no way to bypass nickname translation.
Source: FreeBSD ypcat(1) -t; OpenBSD ypcat(1) -t; NetBSD ypcat(1) -t; Solnix ypcat(1) SYNOPSIS, OPTIONS
FreeBSD, OpenBSD, NetBSD-x synopsis formOn the BSDs, -x is a separate form, 'ypcat -x', that takes no map name. The Solnix synopsis is a single form 'ypcat [-kx] [-d ypdomain] mname', so mname appears to be required with -x. The page does not say whether it is ignored.
Source: Solnix ypcat(1) SYNOPSIS; FreeBSD ypcat(1) SYNOPSIS; OpenBSD ypcat(1) SYNOPSIS; NetBSD ypcat(1) SYNOPSIS
NetBSD-b retry limitNetBSD ypcat -b num_retry limits how many times it retries reaching the ypserver, from 0 to 65535. The Solnix page has no -b and does not describe retry behaviour.
Source: NetBSD ypcat(1) -b; Solnix ypcat(1) OPTIONS
NetBSD-s whitespace compressionNetBSD ypcat -s compresses whitespace in each value to a single space, which helps when values contain newlines. Solnix has no -s, so values are printed as the map holds them, as far as the page says.
Source: NetBSD ypcat(1) -s; Solnix ypcat(1) OPTIONS
NetBSDnickname table sourceNetBSD ypcat -x shows the table from /var/yp/nicknames, with a built-in default if the file is absent. The Solnix page says only that -x displays map nicknames and does not name a file.
Source: NetBSD ypcat(1) -x; Solnix ypcat(1) -x
FreeBSD, OpenBSD, NetBSD-k descriptionSolnix -k says it is for maps where values are null or the key is not part of the value, and adds that maps derived from /etc ASCII files are never in this class. The BSD pages give the same use but do not say which maps qualify.
Source: Solnix ypcat(1) -k; FreeBSD ypcat(1) -k; OpenBSD ypcat(1) -k; NetBSD ypcat(1) -k
Linuxno Linux page in the bundleThe bundle has no Linux ypcat page, so no Linux comparison can be made. The manual does not say how Linux ypcat differs.
Source: Bundle header: counterparts are FreeBSD, OpenBSD and NetBSD only

Standards

  • POSIX: ypcat is not a POSIX.1-2024 utility.
  • Solnix: The Solnix page lists attributes(7) under SEE ALSO, but the bundle text contains no ATTRIBUTES or Interface Stability section.

Writing portable scripts

  • Use only 'ypcat [-k] [-d domain] mapname', which works on Solnix, FreeBSD, OpenBSD and NetBSD. Avoid -t, -s and -b, which are missing on Solnix.
  • Use real map names instead of nicknames if you need predictable results. Solnix has no -t to turn nickname translation off.

Every difference here is taken from the manual pages linked above: Solnix's published page, Linux (man-pages and the GNU and util-linux manuals), FreeBSD, OpenBSD and NetBSD. Each row names its source. Where a manual is silent, this page is too. Compiled 2026-10-26. Found a mistake? Mail hackers@lists.solnix.io.