[root@ttthost sbin]# hostnamectl status
Static hostname: ttthost
Icon name: computer-desktop
Chassis: desktop
Machine ID: 9584db22ec5a412e807495b2ab793778
Boot ID: cc9a1a80054841bc9398abb9fa86f928
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.el7.x86_64
Architecture: x86-64
##호스트 네임 변경
[root@ttthost sbin]# hostnamectl set-hostname myhost
##변경된 호스트 네임 확인
[root@ttthost sbin]# hostnamectl status
Static hostname: myhost
Icon name: computer-desktop
Chassis: desktop
Machine ID: 9584db22ec5a412e807495b2ab793778
Boot ID: cc9a1a80054841bc9398abb9fa86f928
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.el7.x86_64
Architecture: x86-64
## 변경된 스트는 재시작 하면 보이게 됩니다.