If you wish to change Ubuntu linux hostname this small post will be highly helpful to you. You can change the Ubuntu operating system computer name with few Terminal commands. And it does the job!!! 🙂
Steps to Change Hostname in Ubuntu Linux:
In this tutorial I have changed the hostname from “praveen-LIFEBOOK-AH532” to “MacBook”. Simple follow the below instruction to change your Ubuntu operating system hostname.
1. Open Linux Terminal.
2. Type “gksu gedit /etc/hostname”
Note: If gksu is not installed it will ask for installation. Just enter your system password to install gksu.
4. This command will open a text editor file. Edit your hostname and click Save(Ctrl+S) button.
5. Restart your computer to see changes in hostname.
I hope this small post will be helpful for you 🙂