Change hostname in Centos 7
On a CentOS Linux 7 server you can use any one of the following tool to manage hostnames:
- hostnamectl command : Control the system hostname. This is recommended method.
- nmtui command : Control the system hostname using text user interface (TUI).
- nmcli command : Control the system hostname using CLI part of NetworkManager.