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

+1 vote

Getting Error while trying to install with root

+1 vote

I am new to MongoDB and try to install MongoDB 3.2.9 on Ubuntu 14.01 LTS. I found there are different ways to install it as below:
1. The MongoDB official guidance use the apt-get install.
2. Download the package and create folders like bin, data, log, conf etc. and then manually and copy the corresponding modules to the bin when needed.

I am wondering which method should I use. Seems the second one is more flexible as its hard to make sense what the first one has done to the OS.

Could you advise any other impact and differences about the two methods for installation? Thanks in advance!


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...