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

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









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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
ModuleNotFoundError: No module named 'hosts'
ModuleNotFoundError: No module named 'hosts'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'hosts' How to remove the ModuleNotFoundError: No module named 'hosts'
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 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
How to Install and Use PostgreSQL on Ubuntu 18.04
How to Install and Use PostgreSQL on Ubuntu 18.04  Hi, I want to install PostgreSQL on Ubuntu 18.04. I have Ubuntu 18.04 desktop installed on my... on Ubuntu 18.04 operating system? Thanks   Hi, You can install Postgresql
How to Install and Use PostgreSQL on Ubuntu 18.04
How to Install and Use PostgreSQL on Ubuntu 18.04  Hi, I want to install PostgreSQL on Ubuntu 18.04. I have Ubuntu 18.04 desktop installed on my... on Ubuntu 18.04 operating system? Thanks   Hi, You can install Postgresql
How to install Oracle JDK 8 on Ubuntu?
How to install Oracle JDK 8 on Ubuntu?  Hi, What are the steps to install Oracle JDK 8 on Ubunut? I am installing JDK 8 on Ubuntu 14.04. Thanks... to install Oracle JDK 8 on Ubuntu? In this tutorial I will show you how you can install
How to Install VirtualBox in Ubuntu 20.04?
VirtualBox Tutorial - How to Install VirtualBox in Ubuntu 20.04... and OpenSolaris, OS/2, and OpenBSD. How to Install VirtualBox in Ubuntu 20.04? We will learn how to install VirtualBox in Ubuntu 20.04 step by step. So, following
jsp hosts
jsp hosts  Hi, What is the meaning of jsp hosts or JSP hosting environments? Thanks   JSP hosts are the hosting companies providing hosting environment for JSP and Servlets. These companies are providing: 1) Shared
How to install JDK 10 in Ubuntu 18.04?
Java/JDK 10: How to install JDK 10 in Ubuntu 18.04? Java/JDK 10 is already... of this release. The Ubuntu 18.04 is latest release of Ubuntu operation system... software on Ubuntu operating system. Java/JDK 10 release binary is available
How to install Ubuntu 22.04 LTS on Oracle Virtualbox?
Ubuntu 22.04 LTS - How to install Ubuntu 22.04 LTS on Oracle Virtualbox? Ubuntu 22.04 comes with the latest features required to run today's demanding... you how to install Ubuntu 22.04 on the Virtualbox running on the Window 10
How to install Eclipse in Ubuntu using terminal?
How to install Eclipse in Ubuntu using terminal?  Hi, How to install Eclipse in Ubuntu using terminal? I am looking for good explanation for installing the eclipse on Ubuntu 16.04. Thanks   Hi, You can use
ModuleNotFoundError: No module named 'block-hosts'
'block-hosts' How to remove the ModuleNotFoundError: No module named 'block-hosts' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'block-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'boc-hosts'
'boc-hosts' How to remove the ModuleNotFoundError: No module named 'boc-hosts' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'boc-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'media-hosts'
'media-hosts' How to remove the ModuleNotFoundError: No module named 'media-hosts' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'media-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'python-hosts'
'python-hosts' How to remove the ModuleNotFoundError: No module named 'python-hosts' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'python-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'python-hosts'
'python-hosts' How to remove the ModuleNotFoundError: No module named 'python-hosts' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'python-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'python-hosts'
'python-hosts' How to remove the ModuleNotFoundError: No module named 'python-hosts' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'python-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'python-hosts'
'python-hosts' How to remove the ModuleNotFoundError: No module named 'python-hosts' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'python-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'block-hosts'
'block-hosts' How to remove the ModuleNotFoundError: No module named 'block-hosts' error? Thanks   Hi, In your python environment...ModuleNotFoundError: No module named 'block-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'boc-hosts'
'boc-hosts' How to remove the ModuleNotFoundError: No module named 'boc-hosts' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'boc-hosts'  Hi, My Python
ModuleNotFoundError: No module named 'django-hosts'
'django-hosts' How to remove the ModuleNotFoundError: No module named 'django-hosts' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'django-hosts'  Hi, My Python

Ads