the hostname in RHEL by editing the /etc/hostname file and then rebooting the system or by using the hostnamectl command.
/etc/hostname
hostnamectl