Answers for "how to change host location in ubuntu"

9

how to change hostname in ubuntu

#1- Delete the old name and setup new name
sudo hostnamectl set-hostname newHostname

#2- Edit the /etc/hosts file:
sudo nano /etc/hosts

#3- Reboot the system 
sudo reboot

#4- To check the new hostname
hostnamectl
Posted by: Guest on December-31-2020
0

ubuntu hosts file location

/etc/hosts
Posted by: Guest on May-17-2021

Code answers related to "how to change host location in ubuntu"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language