How to Set Hostname in BASH

sudo hostnamectl set-hostname HOSTNAME