HostOnNet Blog

Changing computer name in ubuntu

To change computer name in ubuntu, run

sudo echo "computer-new-name" > /etc/hostname

Now you need to reboot to get the computer name changed.


Posted in Ubuntu