/etc/motd 每次用户登陆时,/etc/motd文件的内容会显示在用户的终端。ide
/etc/motd 清空此文件it
修改主机名:临时生效: hostname HOSTNAME永久生效: /etc/hostname/etc/sysconfig/network(重启生效)class