In this tutorial, we will assume that the hostname you want is “pluto”.
hostname pluto
nano
, you can then type: nano /etc/hostname
pluto
, then press Ctrl + X, then Y, then Enter.nano
, type nano /etc/hosts
to edit the hosts file.127.0.0.1 pluto
hostname
.hostnamectl set-hostname pluto
hostname
.