QueHow

A How-To and wiki Blog

  • Operating System
    • Windows
      • Windows 10
      • Windows 7
    • Linux
  • Software
    • Application Software
    • Microsoft Office
      • Outlook
      • Word
      • PowerPoint
  • Internet
    • Browsers
      • Mozilla Firefox
      • Google Chrome
    • CMS
    • Tips & Tricks
  • Website
    • ecommerce
    • Google
    • Social Networking
    • General Websites
  • Mobile
  • Email
    • Gmail
  • Wiki

How to Change your Hostname in Ubuntu 14.04

By Neha T Leave a Comment

Do you want to change your hostname?. Basically, a hostname is the name of the computer, and it must be unique as it is used to identify your system in the network. You can also see your hostname explicitly in the Terminal Window.

Did you know that Ubuntu does not provide any graphical interface like Windows to change your Hostname?. It only asks you to provide your hostname during installation, but if you want to know how to change your hostname in Ubuntu14.04 after installation then just have a glance at this article and follow these simple steps shown below.

How-to-Change-your-Hostname-in-Ubuntu-14.04

Steps to change your hostname (Computer Name):

Step 1: Go to Unity Dash and type “terminal”. You’ll see a terminal icon, click on it to open or you can directly open your terminal by using “Ctrl + ALT + T” button combination.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

Step 2: Now, Under ‘Terminal’ type: “sudo gedit  /etc/hostname” and press enter. Here, you may have to provide your Ubuntu password for authentication and then press enter.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

Step 3: Now ” /etc/hostname” file gets pop open. This file contains your computer’s hostname only.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

Step 4: Just delete the hostname in ” /etc/hostname” file and type your desired hostname. Don’t forget to press “Save” button.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

Step 5: Your hostname is also stored in the ‘/etc/hosts’ file. So, You’ll have to change the hostname in your hosts file. For that type: “sudo gedit  /etc/hosts” and hit enter.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

Step 6: Now ” /etc/hosts” file gets pop open. Here, you have to change your old hostname and replace with the new one.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

Step 7: After changing your hostname, don’t forget to press “Save” button as shown in the image below.

How-to-Change-your-Hostname-in-Ubuntu-14.04

Step 8: If you want to change your hostname immediately, then type: “sudo hostname your-new-hostname”.

How-to-Change-your-Hostname-in-Ubuntu-14.04

Step 9: You have to open a new terminal by using (Ctrl + ALT + T) in order to view the changes.

How-to-Change-your-Hostname-in-Ubuntu-14.04

 

That’s all friends. Keep reading.

You Might Also Like:

How to Display your Password while using Terminal in Ubuntu 14.04 How to Configure Sudo wait time in Ubuntu 14.04 How to Remove Guest Account in Ubuntu 14.04 How to allow users to run programs as a root user in Ubuntu 14.04 How to create a zip file using terminal in Ubuntu 14.04 How to prevent others from accessing your home directory in Ubuntu 14.04 How to enable hibernate option in Ubuntu 14.04 How to Create Desktop icons in Ubuntu 14.04

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed

  • How to Install and Use TELNET in Ubuntu
  • How to install Hindi fonts in MS Word
  • How to Change a File Extension in Windows 10?
  • How to create a flipkart account in 3 simple steps
  • How to Change Monitor Refresh Rate in Windows 10?
  • How to install IIS on Windows 10
  • How to Insert Clickable Checkbox in MS Word 2016?
  • How to Set Auto Reply in Outlook 2016?
  • How to Login as Administrator in Windows 10?
  • How to Check RAM Size and System Type in Windows 10?

Recent Additions

  • How to Add Hyperlink to Another Sheet in Excel?
  • How to Add and Remove Watermark in Excel
  • How to use Relative and Absolute Cell Reference in Excel?
  • How to Enable and Disable Scroll Lock in Excel?
  • How to Use INDEX and MATCH Functions in Excel?
  • How to Make Bar Graph in Excel?
  • How to Count Duplicate Values in Excel?
  • How to Wrap Text in Excel?
  • How to Round off Numbers in Excel?
  • How to Create a Bell Curve in Excel?

Related Searches

  • How to Enable or Disable Auto-Enhance feature of Photos App in Windows 10
  • How to enable Flash Player in Google Chrome?
  • How to disable Screen Saver in Windows 7?
  • How to Create Desktop icons in Ubuntu 14.04
  • How to add slide numbers in MS PowerPoint 2016?

Copyright © 2023 · QueHow · Contact Us