change hostname in debian code example
Example 1: linux change hostname
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
Example 2: set hostname debian 10
hostnamectl set-hostname <name>
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
hostnamectl set-hostname <name>