Terminal Command To Change Computer Host Name?

Hi,

I cloned my openSUSE hard drive and put it in another computer.
Only issue is both computers have the same host name.
What is the terminal command to change computer host name?
Thanks!

Jesse


sudo echo "HostNameOfChoiceHere" > /etc/hostname

Hi
It’s;


hostnamectl set-hostname NAME

Thanks, that worked…