Horje
change hostname ubuntu 20.04 Code Example
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
change hostname ubuntu 20.04
#Change hostname
sudo hostnamectl set-hostname newHostName 
#Edit the /etc/hosts file, and replace existing hostname with a new hostname.
sudo nano /etc/hosts
#Reboot the system to changes take effect
sudo reboot




Shell

Related
linux check used space in folder Code Example linux check used space in folder Code Example
check folder sizes linux Code Example check folder sizes linux Code Example
npm ERR! Cannot read properties of null (reading 'pickAlgorithm') Code Example npm ERR! Cannot read properties of null (reading 'pickAlgorithm') Code Example
Cannot read property 'pickAlgorithm' of null Code Example Cannot read property 'pickAlgorithm' of null Code Example
delete package on linux Code Example delete package on linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11