Ubuntu: Changing Hostname from Command Line To change use the below in putty sudo /bin/hostname mynewhostname and also sudo edit /etc/hosts By adminx|2010-09-24T09:26:31+05:30September 24th, 2010|Ubuntu|Comments Off on Ubuntu: Changing Hostname from Command Line Share This Story, Choose Your Platform! FacebookTwitterRedditLinkedInTumblrPinterestVkEmail