How to permanently change the hostname? $ hostnamectl set-hostname <name> See: Change hostname in CentOS Please log in to rate this. 0 people found this helpful. ← Knowledge Base