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

I have changed the name of a newer laptop to my name, but all files etc., are still referred to as the old name. In your discription to change host name using CMD prompt, I didn't understand how to put the proper line in the prompt.

share|improve this question

closed as unclear what you're asking by Eric Carvalho, Luis Alvarado Jul 24 '14 at 17:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

I think that you can modify your hostname with use hostname command or to edit /etc/hostname file.

If you use hostname command, the system's hostname is modified directly, but when you reboot your system, it'll be restored.

And you can edit /etc/hostname file to do it.

But your hostname will not be modified directly, but when next reboot your system, it'll be used.

Editing about the file is simple as following.

$ sudo echo -n <hostname> > /etc/hostname
share|improve this answer

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