To change the hostname on a SUSE Linux system without using yast, you can use the following terminal commands:
- Open a terminal or SSH into your SUSE Linux system
- Backup the current
/etc/HOSTNAMEfile:
cp /etc/HOSTNAME /etc/HOSTNAME.bak
- Open the
/etc/HOSTNAMEfile in a text editor:
nano /etc/HOSTNAME
- Change the current hostname to the desired hostname:
new-hostname
- Save and close the
/etc/HOSTNAMEfile - Update the hostname by running the following command:
hostname new-hostname
- Verify the change by running the following command:
hostname
This will change the hostname of your SUSE Linux system without using yast. Note that you may need to restart the system or network services for the changes to take effect.