How to Set or Change Hostname in CentOS/RHEL 7/8

A computer hostname represents a unique name that gets assigned to a computer in a network in order to uniquely identify that computer in that specific network. A computer hostname can be set to any name you like, but you should keep in mind the following rules

Originally Published at