top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Changing host name in Linux

+1 vote

I am a newbe using Linux and Ubuntu. I have purchased two Ubuntu books to get
started. The only mention of "host name" in either book is during install.
During the install I had a typo entering the "host name" and would now like to
change it. What command do I use to change the "host name" for my computer?

posted Jun 1, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote
Best answer

You just need to edit /etc/hostname file whatever your text editor is.
Just make sure you have enough privilege to edit it.

answer Jun 1, 2013 by anonymous
Similar Questions
0 votes

I want to know when "apt-add-repository" becomes mandatory to run in Ubuntu machine. Usually I used following two commands many times.
$sudo apt-get update
$sudo apt-get install

+6 votes

I suddenly pressed CTRL+Q as I am using Ubuntu Mint, but I want to get rigged of this situation.
Is there any undo shortcut for it or any possible answers.

0 votes

I have a png file which I want to reduce in size and dimension. Do we have any command in ubuntu/linux to achieve the same?

Thanks in advance and sorry for hiding my identity.

Useful Links with Similar Problem
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.