HostOnNet Blog

Changing computer name in ubuntu

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.