CentOS 7 set hostname

To change the hostname in a CentOS Linux use the command
hostname $newhostname
Remebmber to edit the file
/etc/hostname
to make it permanent.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.