2

How do I change my hostname in Elementary OS?

I've tried vi /etc/host didn't do anything.

5

For temporary change, you can use hostname command:

hostname <new name>

For permanent change, you must edit /etc/hostname file, replace old name with new name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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