hostname_on_linux
Hostname On Linux
View
$ hostname linux-host-name
Change
First:
$ sudo hostnamectl set-hostname new-linux-host-name
Then, update /etc/hosts entry to reflect the new name.
Finally, use hostname
again to verify the change:
$ hostname new-linux-host-name
hostname_on_linux.txt · Last modified: 2024/08/11 18:08 by jimc