Linux

Change hostname

# Type the hostnamectl command:
sudo hostnamectl set-hostname newNameHere

# Edit the /etc/hosts file and
# replace any occurrence of the existing computer name with your new one.

Last updated