top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Changing host name in Linux

+1 vote
155 views

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 LinkedIn 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.

...