56

hostname命令-ghosts-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13559120/2070009
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
hostname命令用于显示和设置系统的主机名称。环境变量HOSTNAME也保存了当前的主机名。在使用hostname命令设置主机名后,系统并不会永久保存新的主机名,重新启动机器之后还是原来的主机名。如果需要永久修改主机名,需要同时修改/etc/hosts和/etc/sysconfig/network的相关内容。语法hostname(选项)(参数)选项-v:详细信息模式;-a:显示主机别名;-d:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK