How to change Hostname in Ubuntu



Some time we need to change host name in Ubuntu so I am going to describe it.This is common issue those who are not friendly with this os.

There are many way for doing this task but I am going to change it by using GEDIT command.
Before changing hostname- It is ubuntu



Open Terminal and run given command: sudo gedit /etc/hostname
it will ask for password after that below prompt will be displayed change name into this file.
restart machine.



Before changing Hostname;
                             



After Changing:



Comments

Popular posts from this blog

How to upload bulk Email alias in Google Workspace

Deploying App through AWS EKS by using ingress and fargate

How to save git token key to avoid again and again put manually