KellyPoima
New member
How do I change the hostname in Linux Redhat?
Answer
RHEL 8 change hostname command
Answer
RHEL 8 change hostname command
- Type the following command to edit /etc/hostname using nano or vi text editor: sudo vi /etc/hostname.
- Delete the old name and setup new name.
- Next Edit the /etc/hosts file: …
- Replace any occurrence of the existing computer name with your new one.
- Reboot the system to changes take effect: