How to change the device hostname
Establish an SSH connection to Z-Command.
You need to edit two files and update the host name.
1. Edit the hostname file
sudo nano /etc/hostname
You will see current hostname. Change this to whatever you want – one word without special characters or spaces.
CTRL+X press Y then hit Enter
2. Next you need to change the hosts file
sudo nano/etc/hosts
Change the entry with 127.0.1.1. Replace the existing hostname with the new value.
For example 127.0.1.1 your-new-name
3. Reboot