How to Change the Hostname on Ubuntu

Whenever you log into your server, you’ll notice a command language interface (CLI) prompt starting with user@hostname. This tutorial shows you how to change that hostname.