ypmatch(1)

πŸ“¦
version 4.2.3 Β· 2 versions
  • 4.2.3 Β· debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 15.1 Β· freebsd 14.5, freebsd 15.1
, in debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ypmatch β€” the yp-tools bestie that pulls values out of your NIS map πŸ’–

okay so real talk, this is a page from the General Commands Manual, and the command is ypmatch(1). she's a little lookup queen and she's about to make your NIS life so much easier, no cap.


✨ NAME ✨

ypmatch β€” print the values of one or more keys from a NIS map

like... that's literally her whole job and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

ypmatch [ -kt ] [ -d domain ] key ... mapname
ypmatch -x

πŸ¦‹ DESCRIPTION πŸ¦‹

so bestie, here's the tea: ypmatch prints the values of one or more keys out of the NIS database that you point at with mapname. and mapname can be either a real map name or a map nickname β€” she's flexible like that, she contains multitudes ✨


πŸ’… OPTIONS πŸ’…

  • -d domain β€” wanna look in a domain that isn't the default one? say less. this picks a domain other than the default domain, and the default is whatever domainname(8) hands back.
  • -k β€” show the map keys. this one is genuinely so useful when the map's values are null, or when the key isn't even part of the value. lowkey a lifesaver πŸ™ˆ
  • -t β€” this option inhibits map nickname translation. yeah. she said no more nicknames, we're going full legal name only.
  • -x β€” display the map nickname translation table. the whole thing. iconic.

πŸŽ€ FILES πŸŽ€

  • /var/yp/nicknames β€” the map nickname translation table. that's where all the nickname lore lives 🫢

🌈 SEE ALSO 🌈

domainname(8), nicknames(5), ypbind(8), ypcat(1), yppoll(8), ypserv(8), ypset(8), ypwhich(1)

go read the whole friend group, they're all serving πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

ypmatch is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@linux-nis.org>. giving credit where credit is due, periodt ✨


πŸ’– mwah, that's the whole page bestie. go match some keys, you're gonna ate. πŸ’–

this was YP Tools 4.2.3, from April 2010 β€” yeah she's vintage, she's a classic, and she still slays πŸŽ€πŸ¦‹β­