To change the hostname of an Ubuntu machine, there are a couple of files that need editing. Firstly, open the /etc/hostname file and change the hostname in here to the one you wish to use. 09:51:17 0 ~ jason$ sudo vim /etc/hostname09:51:17 0 ~ jason$ sudo vim /etc/hostname Then edit the /etc/hosts file and change …

To set a new hostname on a Cisco router, switch to privileged exec mode by typing enable at the prompt. Enter configuration mode by entering this command. eng_floor_2#configure terminaleng_floor_2#configure terminal Then set the hostname by typing this command. eng_floor_2(config)#hostname eng_floor_2eng_floor_2(config)#hostname eng_floor_2 Now the proper hostname has been set on the switch. eng_floor_2#show running-config Building configuration… …

Changing the hostname on a Linux system is very easy indeed. Use this command to set a new hostname. [email protected]:~$ sudo hostname netbook.local Then edit the /etc/hosts file to set the new hostname. [email protected]:~$ sudo vim.tiny /etc/hosts And edit it to the new value. 127.0.0.1 localhost 127.0.1.1 netbook.local # The following lines are desirable for …