To change the hostname of your Suse Linux system without using the YaST utility, you can follow these steps:
Open a terminal window.
Use the hostnamectl
command to set the new hostname. For example:
sudo hostnamectl set-hostname newhostname
/etc/hosts
file and update the hostname entry. For example:127.0.0.1 localhost newhostname
/etc/HOSTNAME
file and update the hostname. For example:newhostname
Note: The steps above assume that you have root access to your system. If you do not have root access, you will not be able to make these changes.