Shell/Bash: rename computer ubuntu 20.04 Example


Shell/Bash Example: This is the "rename computer ubuntu 20.04" Example. compiled from many sources on the internet by

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

rename username ubuntu 20.04

usermod -l  -d /home/ -m 

* Summary: This "rename computer ubuntu 20.04" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!