Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

My machine's hostname is, and I want to change it to ever. I tried editing /etc/hosts and replacing ev with ever, and also replacing with ever, saving, and editing the ev that was in /etc/hostname to ever. Then I restarted, but the hostname was still (it shows ev).

Any solution?

share|improve this question

Permanent hostname change:

You have to edit the file /etc/hostname and change the name of the system and then run:

/etc/init.d/ start

to make the change active. The hostname saved in this file (/etc/hostname) will be preserved on system reboot (and will be set using the same script we used

share|improve this answer
He said to have changed /etc/hostname and rebooted, which should have made the new hostname apply. – blueyed Jun 2 '12 at 20:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.