linux:ubuntu:ubuntu_server_hostname

Change Ubuntu hostname

Edit the /etc/hostname file - update it with the new desired hostname

sudo vim /etc/hostname

Also edit /etc/hosts and change the line which reads:

127.0.1.1     your-old-hostname

to you new hostname

Reboot

Enter your comment:
L​ U Q I G
 
  • linux/ubuntu/ubuntu_server_hostname.txt
  • Last modified: 2019-10-31 09:05
  • (external edit)