How To Change The Localhost Name In ubuntu Linux

Assalam O Alaikum Dear FOCSofts Friends,..  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/hosts
hosts will be opened in notepad.
you can find this line :
127.0.0.1    localhost.localdomain    localhost

Just change the localhost to www.facebook.com
Restart the apache server.
Don't you know how to restart the server. nothing to worry just enter the following command in terminal:
sudo /etc/init.d/apache2 restart

if you enter "www.facebook.com",then you will get this page in your browser.
Copyrights:
Don't try to copy the contents! if you want to post in your website or blog.  Give me link as resource to this page.  Link should be hyperlink not a text.

If You Want Any Kind Help, Reply Here

Post a Comment

 
Top