Step Changing Hostname on Ubuntu Linux

in #utopian-io7 years ago (edited)

Hostname is the name of the computer, when we install Ubuntu where we have to enter the computer name. Sometimes we make the hostname appear in the terminal after the @ sign (@ hostname). When we want to change hostnames, there are several ways we should go between:

* Using GUI
* Command Line

By using these 2 ways. The way we can use in some os one of them in Linux Mint, Debian, and distros that are still a family, because for the same configuration.

HOSTNAME on Linux?

Hostname is the name given to a computer on a network. hostname is just a name of the computer, the only use to identify a computer in the network. Hostname is also displayed in the terminal.

3.jpg

As you can see above, his username is a geek, while his hostname is Carddisk.

This hostname should uniquely identify a computer on the network. There are some rules defined for the hostname. Hostnames can only contain letters, numbers, and hyphens characters, and character periods. A hostname must start and end with a letter or number. hostname must be between 2 and 63 characters.

You can change your hostname as you wish, but you should not use the same hostname on two different computers on a network, as this may cause problems.

Changing Hostname Using GUI

To change the hostname using GUI, the first step you should do is to open System Settings. Then select Details.
4.png

now we will see the column to change the device name. Change Device Name.
5.png

When we want to check the hostname in the terminal then it has changed.

67.png

How to Change Hostname Using Terminal

If we want to change hostaname using terminal, here's how:

sudo nano / etc / hostname
Open the terminal. To change your hostname you will need to edit your / etc / hostname file, which Ubuntu, Mint and other Debian based distributions store the host name here.
1 (2).png

We can change the name according to our wishes. To view the changes you need to restart the computer.
2 (2).png


WELCOME TO HOPEFULLY SUCCEED




Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Your contribution cannot be approved because it is not as informative as other contributions. See the Utopian Rules. Contributions need to be informative and descriptive in order to help readers and developers understand them.

  • Changing hostname is too easy a task to require a tutorial.
  • On a side note, the repository is incorrect.

You can contact us on Discord.
[utopian-moderator]

Coin Marketplace

STEEM 0.23
TRX 0.22
JST 0.036
BTC 98604.28
ETH 3469.99
USDT 1.00
SBD 3.20