[root@localhost sysconfig]# nmtui
[root@localhost sysconfig]# nmtui tool
用量: nmtui
nmtui edit [连接]
nmtui connect [连接]
nmtui hostname [新主机名]
[root@localhost sysconfig]# nmtui hostname your-host-name
原文地址:http://huangchao.blog.51cto.com/10446378/1665229