ypwhich(1)
β¨ ypwhich β the manual, but make it make sense β¨
okay bestie, gather round π this is ypwhich, and its whole entire job is to return the name of the NIS server or the map master. that's it. that's the gig. she's a little lookup queen and she ate π
πΈ SYNOPSIS πΈ
ypwhich [ -d domain ] [ -Vn ] [ hostname ]
ypwhich [ -d domain ] [ -t ] -m [ mname ]
ypwhich -x
three whole fits. pick your vibe β¨
π¦ DESCRIPTION π¦
so like, ypwhich comes back with the name of the NIS server that's supplying NIS services to a NIS client β or, if you're asking about a map, it tells you which server is the master for that map. no cap. π
if you just run it with no arguments at all, it gives you the NIS server for the local machine. simple. iconic. and if you pass a hostname, it goes and queries that machine instead to find out which NIS master it is using. it's giving "who's your server, bestie?" π«Ά
π OPTIONS π
-ddomainβ specify a domain that is not the default domain. main character domain energy, go off π-tβ this one inhibits map nickname translation. like, no nicknames today, we're going full legal name π€-mmnameβ find the master NIS server for a map. β οΈ heads up bestie: you cannot specify ahostnamealongside the-moption, so don't even try it π.mnamecan be a mapname or a nickname for a map. and if you omitmnameentirely?ypwhichwill produce a list of available maps for you. a little gift. a little treat. π-xβ display the map nickname translation table. the receipts, the lore, the whole dictionary πβ¨-Vnβ version ofypbind(8). V3 is the default. use V2 for NIS clients that don't support IPv6. respectfully, if that's you, upgrade bestie π
π§ FILES π§
/var/yp/nicknamesβ the map nickname translation table. this is where the nicknames live. the group chat of map names π
β SEE ALSO β
domainname(8), nicknames(5), ypbind(8), ypcat(1), ymatch... wait no, ypmatch(1), yppoll(8), ypserv(8), ypset(8) π
the whole friend group fr fr. go read them, they're all lowkey serving π«Ά
π AUTHOR π
ypwhich is part of the yp-tools package, which was written by Thorsten Kukuk <kukuk@linux-nis.org>. we love a legend. we stan. π
and that's the tea, bestie β¨ this was YP Tools 4.2.3, April 2010, ypwhich(1) β periodt π
π
π¦ where this page comes from
- debian bookworm: yp-tools 4.2.3-3 Β· GPL-2.0-only
- debian trixie: yp-tools 4.2.3-4+b2 Β· GPL-2.0-only
- fedora 43: yp-tools 4.2.3-21.fc43 Β· GPL-2.0-only
- fedora 44: yp-tools 4.2.3-22.fc44 Β· GPL-2.0-only
- ubuntu jammy: yp-tools 4.2.3-3 Β· GPL-2.0-only
- ubuntu noble: yp-tools 4.2.3-4build1 Β· GPL-2.0-only
- ubuntu questing: yp-tools 4.2.3-4build1
- ubuntu resolute: yp-tools 4.2.3-6 Β· GPL-2.0-only
- ubuntu stonking: yp-tools 4.2.3-6build1 Β· GPL-2.0-only
- Copyright (C) 1998, 1999, 2007, 2010, 2014 Thorsten Kukuk
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms