OpenSUSE Linux Change Hostname (computer name) command

www.lau‮t‬turi.com
OpenSUSE Linux Change Hostname (computer name) command

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
Created Time:2017-10-30 10:17:54  Author:lautturi