Subscribe YouTube Channel For More Live Tutorials
Changing a hostname by using nmcli
You can use the nmcli
utility to update the system hostname.
Login to Oracle Linux 9


Procedure
- Optional: Display the current hostname setting:

2. Set the new hostname:

3. reboot

4. Verify

Optional Method using hostnamectl utility

Reboot

Verification :
# hostnamectl status --static