A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-bash: ypdomainname command not found #Debian apt-get install hostname #Ubuntu apt-get install hostname #Kali Linux apt-get install hostname #CentOS yum install hostname #Fedora dnf install hostname #Raspbian apt-get install hostname
ypdomainname 命令显示主机的 NIS
的域名。此命令的适用范围:RedHat、RHEL、Ubuntu、CentOS、SUSE、openSUSE、Fedora。
hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-A] [--all-fqdns] [-i] [--ip-address] [-I] [--all-ip-addresses] [--long] [-s] [--short] [-y] [--yp] [--nis] hostname [-v] [-F filename] [--file filename] [hostname] domainname [-v] [-F filename] [--file filename] [name] nodename [-v] [-F filename] [--file filename] [name] hostname [-v] [-h] [--help] [-V] [--version] dnsdomainname [-v] nisdomainname [-v] ypdomainname [-v]
--help:显示帮助文档 --version:显示命令版本 -v:显示详细执行过程
显示主机域名:
[root@TestMaster /] $ ypdomainname ypdomainname: Local domain name not set [root@TestMaster /] $ ypdomainname commandnotfound.cn [root@TestMaster /] $ ypdomainname commandnotfound.cn