how to modify hosts file in ubuntu

Ads
 

how to modify hosts file in ubuntu

Hi,

I want to add few host names with ip address in Ubuntu.

how to modify hosts file in ubuntu?

Thanks

View Answers

April 26, 2018 at 5:46 AM

Hii,

Login on ubunut

then sudo su to get root privileges

then open /etc/hosts file with following command

vi /etc/hosts

This will open vi editor. In the vi editor you can change values

Save and exit vi editor.

This way you can modify hosts file in Ubunut.

Thanks

Ads









Related Tutorials/Questions & Answers:
how to modify hosts file in ubuntu
how to modify hosts file in ubuntu  Hi, I want to add few host names with ip address in Ubuntu. how to modify hosts file in ubuntu? Thanks  ... modify hosts file in Ubunut. Thanks
how to modify content of XML file
how to modify content of XML file  hi, I want to modify content... to xml file to replace "XYZ".Every time with the content of text box the file should modify....!!! How do i do it??can somebody give me a sample code
Advertisements
how to create tar file in ubuntu
how to create tar file in ubuntu  Hi, I have a directory with many sub directories and files in it. I want to create tar file of the directory so... tar file in ubuntu? Thanks   Hi, Here is command to create tar file
how to create tar file in ubuntu
how to create tar file in ubuntu  Hi, I have a directory with many sub directories and files in it. I want to create tar file of the directory so... tar file in ubuntu? Thanks   Hi, Here is command to create tar file
how to modify QuestionServlet.java page?
how to modify QuestionServlet.java page?  Dear frnds, how to modify existing QuestionServlet. java file
how to install anaconda in ubuntu
how to install anaconda in ubuntu  Hi, I have to use Ubuntu... to now install Anaconda Python on Ubuntu and trying to find steps to do it. how to install anaconda in ubuntu? Thanks   Hi, Anaconda Python distribution
How to upgrade Ubuntu to Ubuntu 16.04 LTS?
How to upgrade Ubuntu to Ubuntu 16.04 LTS?  Hi, I have old system running the Ubunut 14.04 and now I want to upgrade it to latest version of Ubuntu 16.04 LTS. How to do upgrade? Thanks   Hi, Here is video
how to store,retrieve,modify the data
how to store,retrieve,modify the data  hello sir ,how to store,retrieve,modify the data using the swing please help me
How to download and install Ubuntu 16.04?
How to download and install Ubuntu 16.04?  Hi, Recently Ubuntu 16.04... to download and install it computer. Tell me How to download and install Ubuntu 16.04... the Ubuntu from its official website. Copy the downloaded image file ubuntu-16.04
How to install Neo4j on Ubuntu 15.10?
How to install Neo4j on Ubuntu 15.10?  How to install the latest version of Neo4j on Ubuntu? Thanks
How to upgrade Ubuntu 16.04 LTS?
How to upgrade Ubuntu 16.04 LTS?  Hi, I want to learn the process of upgrading the Ubuntu 16.04. Provide me more details. Thanks
How to install Ubuntu 16.04 LTS?
How to install Ubuntu 16.04 LTS?  Hi, Latest version of Ubuntu 16.04 LTS. This video tutorial teaches you to install Ubuntu 16.04 LTS on Your Oracle Virtual Box. Thanks   How to install Ubuntu 16.04 LTS
How to see ubuntu version on server?
How to see ubuntu version on server?  Hi, Its easy to see the version of Ubuntu on the Ubuntu Desktop operating system. But I have a server on which I have ssh access. How to see ubuntu version on that server? Thanks  
how to find jdk path in ubuntu?
how to find jdk path in ubuntu?  How to find out the path of installed jdk in ubuntu? Could anyone tell that command to execute from terminal.. Thanks
How to install ffmpeg on Ubuntu 16.04?
How to install ffmpeg on Ubuntu 16.04?  Hi, My new Ubuntu 16.04 LTS... computer. I forgot the command to install ffmpeg . How in can install ffmpeg on Ubuntu 16.04? Thanks   Hi, How to install ffmpeg on Ubuntu 16.04? Use
How can i modify my account in roseindia
How can i modify my account in roseindia  Presently am not using my gmail id. I have to modify my roseindia account. Please send the answer to following mail id
How to check Hadoop version in Ubuntu?
How to check Hadoop version in Ubuntu?  Hi, I am trying various... to Hadoop cluster through ssh terminal. How to check Hadoop version in Ubuntu? Thanks   Hi, Its easy to check the version of Hadoop in Ubuntu. type
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?   how to run jdbc program in linux-ubuntu
How to install pip on Ubuntu 16.04?
How to install pip on Ubuntu 16.04?  Hi, How to install pip on Ubuntu 16.04? I am running the command apt-get install pip, but its not working.../ubuntu xenial-security InRelease [94.5 kB] Hit:2 http://in.archive.ubuntu.com
how to install anaconda in ubuntu for all users
how to install anaconda in ubuntu for all users  Hi, I want to install anaconda for all users in Ubuntu. how to install anaconda in ubuntu for all... directory as described in following tutorial: how to install anaconda
How to install p7zip on Ubuntu 16.04?
How to install p7zip on Ubuntu 16.04?  Hi, What is the correct command to install p7zip on Ubuntu? How to install p7zip on Ubuntu 16.04? Thanks   Hi, To install p7zip on Ubuntu 16.04 following the following steps
How to install MySQL Server and Client on Ubuntu 16.04?
How to install MySQL Server and Client on Ubuntu 16.04?  Hi, Latest version of Ubuntu 16.04 is already released and it can be downloaded from Ubuntu... http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 file-roller amd64
How to install LAMP server on Ubuntu 16.04 LTS?
How to install LAMP server on Ubuntu 16.04 LTS?  I have given the task to install LAMP sever on Ubuntu 16.04 LTS. How to install LAMP server on Ubuntu 16.04 LTS? Thanks   Hi, For install LAMP on Ubuntu 16.04 LTS apt
How to install virtualbox guest additions in Ubuntu 16.04?
How to install virtualbox guest additions in Ubuntu 16.04?  Hi, How to install virtualbox guest additions in Ubuntu 16.04? The problem is I am.... Thanks   Hello, After installing the virtualbox guest additions in Ubuntu
How to uninstall JDK from Ubuntu 16.04?
How to uninstall JDK from Ubuntu 16.04?  Hi, I have previously installed JDK 8 on Ubuntu 16.04 and now want to uninstall. How to uninstall JDK from Ubuntu 16.04? How I can completely remove Oracle JDK 8 from Ubuntu 16.04
How to install autoconf, automake and libtool in Ubuntu 15.10?
How to install autoconf, automake and libtool in Ubuntu 15.10?  Hi, How to install autoconf, automake and libtool in Ubuntu 15.10? Thanks   For installing these components use the following command: sudo apt-get
how to install wireshark 2.6 2 on ubuntu 16.04
how to install wireshark 2.6 2 on ubuntu 16.04  Hi, how to install wireshark 2.6 2 on ubuntu 16.04? Thanks   Hi, You can to add Add... wireshark 2.6 2 on ubuntu 16.04 with following command: sudo apt-get install
How To Install Google Chrome on Ubuntu 16.04?
How To Install Google Chrome on Ubuntu 16.04?  Hi, What are the correct steps to install Chrome on Ubuntu 16.04? How To Install Google Chrome on Ubuntu 16.04? Thanks   HI, Follow the steps given below to install
how to run jdbc program in linux-ubuntu?
how to run jdbc program in linux-ubuntu?  how to run jdbc program in linux-ubuntu?   hi firstly download the jdk on your system using terminal or go to softwear management then download openjdk-6 or commandline
How to install gtk-doc-tools package in Ubuntu?
How to install gtk-doc-tools package in Ubuntu?  How to install gtk-doc-tools package in Ubuntu? Thanks   In this post I will explain you how to install this package on Ubuntu? To install gtk-doc-tools package
How to install jre on Ubuntu 16.04 LTS?
How to install jre on Ubuntu 16.04 LTS?  Hi, I have installed Ubuntu... with the tutorial for installing jre on Ubunut. How to install jre on Ubuntu 16.04 LTS? Thanks   Hi, Its easy to install jre on Ubuntu. Use following

Ads