Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
::  
::  
::  
::  
::  
::  
::  
Shell :: Amazon Linux 2 AMI install docker 
::  
Shell :: test apache config 
::  
::  
::  
::  
Shell ::  
Shell ::  
Shell ::  
Shell ::  
Shell ::  
Shell ::  
Shell ::  
:: vs force restore all packages command line 
Shell ::  
Shell ::  
:: upgrade version of node in windows 
:: delete local branch 
Shell ::  
Shell ::  
Shell ::  
::  
ADD CONTENT
Topic
Content
Source link
Name
3+5 =