Thursday, March 17, 2016

How to change hostname in centos7

Obviously you can do it manually, but there are a number of tools that can do it for you:

  1. hostnamectl command : Control the system hostname. This is recommended method.
  2. nmtui command : Control the system hostname using text user interface (TUI).
  3. nmcli command : Control the system hostname using CLI part of NetworkManager.
Tip stolen from here

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.