Tag: nano
Change Computer Name / Host Name Ubuntu Linux (8.10)
by swicknire on Feb.19, 2009, under linux/ubuntu
If you want to change the computer name of your linux box, it’s quite simple. Use the following commands to ensure the name is changed.
sudo nano /etc/hostname
And then make sure your hosts file is updated with the new name as well
sudo nano /etc/hosts
I typically use nano (pico) because to me it seems more user friendly and intutive. You may use vi or any such editor you wish.