可以使用以下命令列出NIS中的别名,然后使用别名查找就可以了。 # List all map nicknames - any of below ypcat -x ypmatch -x ypwhich -x 列出所有的用户 ypcat passwd 列出所有的主机 ypcat hosts