centos

Set the hostname of a machine on CentOS

While setting up some AFP shares on a CentOS server earlier, I needed to change the hostname of the machine so that it would display properly to other machines on the network (its localhost by default).

Turns out its as easy as running the following command

$ hostname Cody-CentOS-VM.localdomain

more CentOS posts