Question: rpi how to change hostname?
Answer: Launch raspi-config by typing: sudo raspi-config. ... 
Select Network Options. ... 
Select Hostname and hit Enter or select Ok if you receive a warning telling you not to use special characters in Raspberry Pi's hostname. ... 
Enter a new hostname and hit Enter.