To change the hostname (computer name) on OpenSUSE Linux, you can use the hostnamectl
command.
To change the hostname, you can use the following command:
sudo hostnamectl set-hostname new-hostname
Replace new-hostname
with the desired hostname.
This will change the hostname for the current session, but the change will not be permanent. To make the change permanent, you will need to edit the /etc/hostname
file and set the new hostname.
You can also use the hostnamectl
command to view the current hostname, as well as other system information, such as the operating system name, version, and architecture:
hostnamectl