Hostname On Linux
View
hostnameResult:
linux-host-nameChange
First:
sudo hostnamectl set-hostname new-linux-host-nameThen, update /etc/hosts entry to reflect the new name.
Finally, use hostname again to verify the change:
hostnameResult:
new-linux-host-name