Linux

Change hostname

1
# Type the hostnamectl command:
2
sudo hostnamectl set-hostname newNameHere
3
​
4
# Edit the /etc/hosts file and
5
# replace any occurrence of the existing computer name with your new one.
Copied!
Last modified 1yr ago
Copy link