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

Core 5 Security Epics in AWS Cloud

Why do you need to monitor your network?

How to change Domain account logging password