Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rename computer ubuntu 20.04

#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
 
PREVIOUS NEXT
Tagged: #rename #computer #ubuntu
ADD COMMENT
Topic
Name
2+7 =