cat 和 ypcat 有什么区别?
What's the difference between cat and ypcat?
有什么区别:
cat /etc/passwd
和
ypcat passwd
? ypcat 到底是什么?
为什么我会得到这个:
ypcat: can't get local yp domain: Local domain name not set
当 运行
ypcat passwd.
cat 命令用于连接和显示给定文件的内容。
ypcat 另一方面
prints out the Network Information Services (NIS) map you specify with the MapName parameter. You can specify either a map name or a map nickname. Because the ypcat command uses the NIS service, you do not need to specify a server
NIS 是
The Network Information Service, or NIS (originally called Yellow Pages or YP) is a client–server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network.
在此处阅读有关 ypcat 的信息:http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds6/ypcat.htm
在此处阅读有关 NIS 的信息:https://en.wikipedia.org/wiki/Network_Information_Service
ypcat
显示来自 NIS 数据库 的数据,它可能不在您的计算机上。它拥有 网络 帐户(允许您登录网络上的各种计算机)。它以 "yp" 前缀命名,因为原始程序被称为 "yellow pages"(直到 Sun 和其他人被 phone 公司告知停止这样做)。
cat
(当然)仅显示您计算机上文件中的数据,其中列出了 local 个帐户。
进一步阅读:
有什么区别:
cat /etc/passwd
和
ypcat passwd
? ypcat 到底是什么?
为什么我会得到这个:
ypcat: can't get local yp domain: Local domain name not set
当 运行
ypcat passwd.
cat 命令用于连接和显示给定文件的内容。
ypcat 另一方面
prints out the Network Information Services (NIS) map you specify with the MapName parameter. You can specify either a map name or a map nickname. Because the ypcat command uses the NIS service, you do not need to specify a server
NIS 是
The Network Information Service, or NIS (originally called Yellow Pages or YP) is a client–server directory service protocol for distributing system configuration data such as user and host names between computers on a computer network.
在此处阅读有关 ypcat 的信息:http://www.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds6/ypcat.htm
在此处阅读有关 NIS 的信息:https://en.wikipedia.org/wiki/Network_Information_Service
ypcat
显示来自 NIS 数据库 的数据,它可能不在您的计算机上。它拥有 网络 帐户(允许您登录网络上的各种计算机)。它以 "yp" 前缀命名,因为原始程序被称为 "yellow pages"(直到 Sun 和其他人被 phone 公司告知停止这样做)。
cat
(当然)仅显示您计算机上文件中的数据,其中列出了 local 个帐户。
进一步阅读: