Suse Linux Change Hostname (computer name) without yast

Originally published at: https://www.cyberciti.biz/faq/suse-linux-change-hostname-computer-name-without-yast/

I am a new Suse Enterprise Linux user. I setup my computer name to ‘linux-mig6’ during installation but now I would like to change the computer name to something else. How can I remove old name and set it to ‘suse-linux-server’ on SLES version 12 SP 3? Can you tell me how do I change the Suse computer name? How do I assign a static hostname to server running SuSe Linux?