hostnamectl status --static -- nmcli general hostname
[root@vm ~]# hostnamectl status --static vm [root@vm ~]# nmcli general hostname vm
{}
hostnamectl set-hostname <새 호스트명> -- nmcli general hostname <새 호스트명>
[root@vm ~]# nmcli general hostname ora23ai [root@vm ~]# hostnamectl set-hostname ora23ai
hostnamectl status --static -- nmcli general hostname -- cat /etc/hostname
[root@vm ~]# hostnamectl status --static ora23ai [root@vm ~]# nmcli general hostname ora23ai [root@vm ~]# cat /etc/hostname ora23ai