How to change the localhost name in ubuntu Linux?

In my previous post, i have explain how to change the localhost in windows operating systems.  This post is especially for ubuntu users.

Requirements:
apache server should be installed.

Open the Terminal
type this command and press enter
sudo gedit /etc/hostshosts will be opened in notepad.
you can find this line :
127.0.0.1    localhost.localdomain    localhost
Just change the localhost to

Lorem ipsum is simply dummy text of the printing and typesetting industry.

Comments