How to Install hostname in Ubuntu 18.04



Install hostname by entering the following commands in the terminal:

sudo apt update
sudo apt install hostname

Description:

utility to set/show the host name or domain name

This package provides commands which can be used to display the system's DNS name, and to display or set its hostname or NIS domain name.

Version: 3.20

Section: admin