PDA

View Full Version : Regarding changing Hostname and Server name in Terminal



dilip.h.n
March 28th, 2018, 11:56 AM
Hello,
If i open a terminal i am getting as:-
dilip@Dilip:~$

where "dilip" is Server name and "Dilip" is Hostname (correct me if i am wrong....)
I tried to change hostname by the command:-
gksudo gedit /etc/hostname /etc/hosts

But i am unable to change the Server name ie., "dilip"

So, How can i change this server name...? What are the commands need to be given..??

Any suggestions are appreciated.

Thank you.

howefield
March 28th, 2018, 11:58 AM
Duplicate thread closed.