1. How to change hostname
The hostname of a linux server is the name other computers on the local network will see.
To update the hostname enter the following command: hostnamectl set-hostname your-custom-hostname
To check if it has updated, sudo logout
and log back in.
Also go and check out the /etc/hosts
file: sudo nano /etc/hosts
And also go and check out the /etc/hostname
file: sudo nano /etc/hostname
No Comments