Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At first my hostname was localhost.localdomain in CentOS 6.2

I installed ubuntu in separate partition after that my hostname was changed to this ###-###-###-###-####.####.example.com

In /etc/sysconfig/network of CentOS it shows hostname as

NETWORKING=yes

HOSTNAME=localhost.localdomain

But while running env command it showing hostname as HOSTNAME=###-###-###-###-####.####.example.com

now what should I do to change my hostname to localhost.localdomain

share|improve this question
    
See the hostname command. – Daniel Andersson Aug 9 '12 at 15:57
    
now its working fine I edited hostname in ubuntu and After restarting here(CentOS) also its changed, now while running hostname command its showing the output as localhost.localdomain – max Aug 10 '12 at 12:20

You must log in to answer this question.

Browse other questions tagged .