/etc/hostnameYou can edit that with your favorite editor. I use emacs:
sudo emacs /etc/hostnameYou will also need to match that in
/etc/hosts
Cite as:
Saad, T. "How to Change Computer Name or Hostname in Linux".
Weblog entry from
Please Make A Note.
https://pleasemakeanote.blogspot.com/2010/08/how-to-change-computer-name-or-hostname.html?m=0
I once looked into this problem. I just recall there are 3 places to modify. And for RHEL/centos is different from Unbuntu...
ReplyDeleteI don't have my note with me here, maybe not accurate.