---

How to change the hostname on CentOS and Ubuntu

The hostname is used to identify the server when connected on a network and it is configured during the initial server setup. Changing the initial server hostname is a task that you might like to perform while you are using the server and in this tutorial, we will show you how to change the hostname on a Linux VPS running CentOS 7 or Ubuntu 16.04 as an operating system.