Change hostname from command line


I have SSH access to a remote tvbox and want to change the hostname, is it possible to do it from commad line?

Thanks for your help.


No Linux expert here, but I would try login through ssh and then use hostname [name]
Just checked; there’s a file with this name in /etc which is created or edited this way I guess

Edit file /storage/.kodi/userdata/addon_data/service.coreelec.settings/oe_settings.xml


restart kodi

systemctl restart kodi